diff --git a/python-setuptools/.md5sum b/python-setuptools/.md5sum index edb0ed962..394076092 100644 --- a/python-setuptools/.md5sum +++ b/python-setuptools/.md5sum @@ -1,2 +1 @@ -a73d0534575b904d17913889dce5bd99 get-pip.py dd4e3fa83a21bf7bf9c51026dc8a4e59 setuptools-39.2.0.zip diff --git a/python-setuptools/.signature b/python-setuptools/.signature index ea811bf41..0c2562ee1 100644 --- a/python-setuptools/.signature +++ b/python-setuptools/.signature @@ -1,6 +1,5 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/Sl3SH0/rFJFIyFCcexoOj6D+P2rfcMwDVZ/vITI3p3H2NFISy739P4MARfu5BmTA7FRgRr0gOSw3e3dgkAvzgk= -SHA256 (Pkgfile) = acf6c68ac722aed212ec05a7b15a353838b8792bcc600f06960cb941e342aea0 +RWSE3ohX2g5d/Q9Htvc+Q92wByiMIMvczezahmT2Dlhn3le1Fy3yfpeVpXE0E63vIlZ7Iy2SCReZct1XkoLdpuGXr2K2budB9A0= +SHA256 (Pkgfile) = 5f51ef4513103622cff64437a64249ffff85c54e6d470d126903b94646b85d11 SHA256 (.footprint) = b57532338325896837febb71264f8cf43303ed0754198415a04edf28002e7bd8 SHA256 (setuptools-39.2.0.zip) = f7cddbb5f5c640311eb00eab6e849f7701fa70bf6a183fc8a2c33dd1d1672fb2 -SHA256 (get-pip.py) = c21805790f7fa317f09798303281e33f9559096123f713e90a22567c88d28d40 diff --git a/python-setuptools/Pkgfile b/python-setuptools/Pkgfile index 769e0e4dd..9a983158d 100644 --- a/python-setuptools/Pkgfile +++ b/python-setuptools/Pkgfile @@ -1,45 +1,21 @@ # Description: Easily download, build, install, upgrade, and uninstall Python packages. # URL: https://pypi.python.org/pypi/setuptools # Maintainer: Danny Rawlins, crux at romster dot me -# Depends on: python-appdirs python-packaging python-pip +# Depends on: python name=python-setuptools version=39.2.0 -release=1 -source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.zip - https://crux.ster.zone/downloads/get-pip.py -# https://bootstrap.pypa.io/get-pip.py -) +release=2 +source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.zip) build() { cd ${name#*-}-$version export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 - if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then - install -d build - sed -i 's/"--upgrade"/"--upgrade", "--upgrade-strategy", "only-if-needed"/' $SRC/get-pip.py - /usr/bin/python $SRC/get-pip.py --root=$SRC/build + /usr/bin/python bootstrap.py + /usr/bin/python setup.py build - local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])') - - PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ - /usr/bin/python bootstrap.py - - PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ - /usr/bin/python setup.py build - - PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ - /usr/bin/python setup.py install \ - --prefix=/usr --root=$PKG --optimize=1 - else - - /usr/bin/python bootstrap.py - /usr/bin/python setup.py build - - /usr/bin/python setup.py install \ - --prefix=/usr --root=$PKG --optimize=1 - fi - - unset SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES + /usr/bin/python setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 }