Date: Thu, 13 Sep 2018 16:34:19 +0200 From: Daniel Nebdal <dnebdal@gmail.com> To: tech-lists@zyxst.net Cc: Robert Huff <roberthuff@rcn.com>, Ports FreeBSD <freebsd-ports@freebsd.org> Subject: Re: how to enforce one version of python Message-ID: <CA%2Bt49PJAZzYU5vd6v_%2B1zwY3xd=Y8aJvbU%2B%2BnKRNggnW5=XMxw@mail.gmail.com> In-Reply-To: <773bfa24-909b-360a-783b-c1b8b3695d70@zyxst.net> References: <fcb50bfe-c21f-a3ba-9d9f-2af92c3565d4@zyxst.net> <20180911145151.zgyeaiobnvkuo2rg@ivaldir.net> <4cd79546-c301-4ab7-13eb-3233736953f5@yandex.ru> <c8d8c8be-caac-f49e-0ec1-b9b08a34218f@zyxst.net> <287384aa-360d-683c-e6a6-cfe07b5a1838@yandex.ru> <df4c9f5a-3563-30c0-bc4c-28e0636cb3f5@zyxst.net> <23449.1943.75477.655239@jerusalem.litteratus.org> <773bfa24-909b-360a-783b-c1b8b3695d70@zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Sep 2018 at 19:35, tech-lists <tech-lists@zyxst.net> wrote: > > On 12/09/2018 13:33, Robert Huff wrote: > > How many ports_require_ python 3? > > How many ports_require_ python 2? > > yeah, I'd like to know too. I mean, I've never installed python as like > requiring it to program - it's installed as a dependency of other stuff > I want to actually run. And I thought python2 and 3 are actually > different languages rather than simply versions. Might be wrong though. > > tjhanks, > > -- > J. They are kind of both, which is both a blessing and a curse. With a bit of care you can write code that's legal in both, and even if you don't, the automatic 2to3 converter is often good enough. Thus, many packages support being configured for either version from the same source, which is why it's kind of a compile-time decision. The fun part is the combination of 2-only holdouts and new 3-only code, which is why it's easy to end up with both installed. At least there's a definite sunset for 2, so it will _eventually_ work itself out. -- Daniel Nebdal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2Bt49PJAZzYU5vd6v_%2B1zwY3xd=Y8aJvbU%2B%2BnKRNggnW5=XMxw>