pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Python 2 fade-out



* On 2024-05-08 at 18:19 BST, Greg Troxel wrote:

@@ -107,7 +107,10 @@ PYTHON_VERSION_DEFAULT?=		311
.else
PYTHON_VERSION_DEFAULT?=		310
.endif
-PYTHON_VERSIONS_ACCEPTED?=		312 311 310 39 38 27
+PYTHON_VERSIONS_ACCEPTED?=		312 311 310 39 38
+.if defined(PYTHON_27_ACCEPTED)
+PYTHON_VERSIONS_ACCEPTED+=		27
+.endif
PYTHON_VERSIONS_INCOMPATIBLE?=		# empty by default

# transform the list into individual variables

I would simply use PYTHON_VERSIONS_ACCEPTED+= in the relevant package Makefiles. It's highly likely we'll want to drop 38 too soon, as it causes almost as many problems as 27, and it'll get tedious having a separate variable for every version.

--
Jonathan Perkin   -   mnx.io   -   pkgsrc.smartos.org
Open Source Complete Cloud   www.tritondatacenter.com


Home | Main Index | Thread Index | Old Index