setuptools: drop support for all but "default Python".

All on-tree users should already be targetting 3.10 only.

Whenever we decide on which Python will be the "next default", we
can add support for that version on this recipe.
This commit is contained in:
Oscar Lesta
2025-09-20 02:22:08 -03:00
committed by OscarL
parent a47af1cd3e
commit 5341b532c2

View File

@@ -6,7 +6,7 @@ Perl and PHP, respectively."
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
COPYRIGHT="2006-2013 Python Packaging Authority"
LICENSE="MIT"
REVISION="2"
REVISION="3"
SOURCE_URI="https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-$portVersion.tar.gz"
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
CHECKSUM_SHA256="4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"
@@ -27,11 +27,11 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
"
PYTHON_PACKAGES=(python39 python310 python311 python312)
PYTHON_VERSIONS=(3.9 3.10 3.11 3.12)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
${portName}_$pythonPackage = $portVersion
\""
@@ -46,9 +46,8 @@ done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/