diff --git a/dev-python/setuptools/setuptools-57.4.0.recipe b/dev-python/setuptools/setuptools-51.3.3.recipe similarity index 88% rename from dev-python/setuptools/setuptools-57.4.0.recipe rename to dev-python/setuptools/setuptools-51.3.3.recipe index 02aaff61e..624cedc34 100644 --- a/dev-python/setuptools/setuptools-57.4.0.recipe +++ b/dev-python/setuptools/setuptools-51.3.3.recipe @@ -9,7 +9,7 @@ LICENSE="Python" REVISION="1" SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz" SOURCE_FILENAME="setuptools-$portVersion.tar.gz" -CHECKSUM_SHA256="e418aa710ab3205c24235e34af8ad6544ffb7d1011cf6896bda0229a20977b39" +CHECKSUM_SHA256="8e45c6cb18f81842421560f788521842572a91a0e64419e338a6a15828ccf076" ARCHITECTURES="any" @@ -52,11 +52,10 @@ BUILD() pythonVersion=${PYTHON_VERSIONS[$i]} # GENERIC: all python_setuptools-based installs need this python=$portPackageLinksDir/cmd~python$pythonVersion/bin/python$pythonVersion - pythonVersion=$($python --version 2>&1) | sed -e 's/Python \(.*\)\..*/\1/' installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + $python bootstrap.py $python setup.py build - mkdir build/scripts-$pythonVersion mv build build$pythonVersion done } @@ -76,8 +75,12 @@ INSTALL() $python setup.py install \ --root=/ --prefix=$prefix --skip-build + sed -i -e "s|^#\!.*/usr/bin/env python|#!/bin/env python$pythonVersion|" $binDir/easy_install* + rm $binDir/easy_install + packageEntries $pythonPackage \ - $prefix/lib/python* + $prefix/lib/python* \ + $binDir mv build build$pythonVersion done }