Date: Fri, 17 Apr 2020 22:19:04 -0400 From: Robert Huff <roberthuff@rcn.com> To: George Mitchell <george+freebsd@m5p.com> Cc: Robert Huff <roberthuff@rcn.com>, Dimitry Andric <dim@FreeBSD.org>, freebsd-ports <ports@freebsd.org>, Dewayne Geraghty <dewaynegeraghty@gmail.com> Subject: Re: python 2.7 marked as deprecated and EOL while 2.7.18 RC is available Message-ID: <24218.25496.502886.46431@jerusalem.litteratus.org> In-Reply-To: <b16f5e5c-5283-9a14-b738-eff635c14109@m5p.com> References: <CAGnMC6rNeUT2wQ=DsrvkNtVz_SGqfKA8Yh=1rbeMS8XtxB3naw@mail.gmail.com> <102F7F34-78D0-45D8-A6CD-54C90BD46791@FreeBSD.org> <24218.18351.39302.604589@jerusalem.litteratus.org> <b16f5e5c-5283-9a14-b738-eff635c14109@m5p.com>
next in thread | previous in thread | raw e-mail | index | archive | help
George Mitchell writes: > >> But basically, expect all python 2.x using ports to go away, unless > >> they get fixed to use python 3.x, or no python at all. > > > > Is there a method whereby - given a list of installed ports using > > python 2 - one might determine which can and which cannot be upgraded > > to pythin 3? > > [...] > > There's a heuristic method: run the python program "2to3" on the > file you want to asses. It will try to replace 2.x usages with > their 3.x equivalents. Success is not guaranteed. (2to3 is part > of python27.) -- George Let me be more precise. I have a list of 110 installed ports flavored "py27-". For each port I want to know: a) according to the Makefile, is it possible to build this with python-37? (Or even -36?) b) will doing so break any port for which this port is a dependency? I understand the only way to answer (b) may be by trial-and-error; fair enough. But if I can identify all those with no dependants ... that would be a start. Respectfully, Robert Huff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24218.25496.502886.46431>