python 2.7 marked as deprecated and EOL while 2.7.18 RC is available

Matthew Seaman matthew at FreeBSD.org
Sat Apr 18 08:34:44 UTC 2020


On 18/04/2020 03:19, Robert Huff wrote:
> 	a) according to the Makefile, is it possible to build this with
> 		python-37?  (Or even -36?) 

If the Makefile for the port says:

USES= python:27

then the port is for python-2.7.x only.  All other python ports will
support python-3.x (which practically speaking means python-3.7).  Note
that ports that are python-2.7.x only are now as rare as hen's teeth as
there has been an active program of deleting such.

> 	b) will doing so break any port for which this port is a dependency?

There are very few things still in the ports that use python and that
only work with python-2.7.  So, yes, everything can be upgraded to
python-3.  Whether that works entirely smoothly is another matter.

Personally, I just changed my default settings in make.conf to make
python-3.7 the default, and did a full rebuilt of my personal poudriere
repo.  A subsequent `pkg upgrade` replaced most of the python 2.7 bits
installed with python 3.7 equivalents.  I had to delete some python-2.7
ports that were no-longer needed, but on the whole everything pretty
much just worked.  Your milage may vary, so be sure to make use of ZFS
snapshots or even good old backups to make sure you have a way of
un-fubarring your system if it all does go a bit pear-shaped.

	Cheers,

	Matthew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200418/9afa8a66/attachment.sig>


More information about the freebsd-ports mailing list