Date: Sun, 23 Feb 2020 21:49:42 +0000 (UTC) From: Antoine Brodin <antoine@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r526946 - head/Mk/Uses Message-ID: <202002232149.01NLngPh044187@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: antoine Date: Sun Feb 23 21:49:41 2020 New Revision: 526946 URL: https://svnweb.freebsd.org/changeset/ports/526946 Log: Add a developer warning to ports using python:2.7 With hat: portmgr Differential Revision: https://reviews.freebsd.org/D23757 Modified: head/Mk/Uses/python.mk Modified: head/Mk/Uses/python.mk ============================================================================== --- head/Mk/Uses/python.mk Sun Feb 23 21:12:25 2020 (r526945) +++ head/Mk/Uses/python.mk Sun Feb 23 21:49:41 2020 (r526946) @@ -324,11 +324,13 @@ _PYTHON_TEST_DEP= yes WARNING+= "PYTHON_DEFAULT must be a version present in PYTHON2_DEFAULT or PYTHON3_DEFAULT, if you want more Python flavors, set BUILD_ALL_PYTHON_FLAVORS in your make.conf" .endif -.if ${_PYTHON_ARGS} == "2" +.if ${_PYTHON_ARGS} == 2.7 +DEV_WARNING+= "lang/python27 reached End of Life and will be removed on 2020-12-31, consider converting to a modern version of python" +.elif ${_PYTHON_ARGS} == 2 DEV_ERROR+= "USES=python:2 is no longer supported, use USES=python:2.7" -.elif ${_PYTHON_ARGS} == "3" +.elif ${_PYTHON_ARGS} == 3 DEV_ERROR+= "USES=python:3 is no longer supported, use USES=python:3.5+ or an appropriate version range" -.endif # ${_PYTHON_ARGS} == "2" +.endif # ${_PYTHON_ARGS} == 2.7 _PYTHON_VERSION:= ${PYTHON_DEFAULT}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002232149.01NLngPh044187>