From 5341b532c2f8577ea17416292b99e70814960e61 Mon Sep 17 00:00:00 2001 From: Oscar Lesta Date: Sat, 20 Sep 2025 02:22:08 -0300 Subject: [PATCH] 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. --- dev-python/setuptools/setuptools-68.2.2.recipe | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/dev-python/setuptools/setuptools-68.2.2.recipe b/dev-python/setuptools/setuptools-68.2.2.recipe index ab5428d12..04b9e05f6 100644 --- a/dev-python/setuptools/setuptools-68.2.2.recipe +++ b/dev-python/setuptools/setuptools-68.2.2.recipe @@ -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/