diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2018-07-02 07:06:56 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2018-07-02 07:38:43 +1000 |
commit | bbcd31c03def9cea9fa4fa2d237882f020fe5a38 (patch) | |
tree | b41d9a88a26d354d98f41347c3c9d573a1dd2a0a /python-six/Pkgfile | |
parent | 6f487353ccbb4ff698fa9ff5f3884bcbaeef4b85 (diff) | |
download | opt-bbcd31c03def9cea9fa4fa2d237882f020fe5a38.tar.gz opt-bbcd31c03def9cea9fa4fa2d237882f020fe5a38.tar.xz |
python-six: update to remove bootstrap code
Diffstat (limited to 'python-six/Pkgfile')
-rw-r--r-- | python-six/Pkgfile | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/python-six/Pkgfile b/python-six/Pkgfile index 26bae6d7b..4e2d0ae03 100644 --- a/python-six/Pkgfile +++ b/python-six/Pkgfile @@ -5,32 +5,18 @@ name=python-six version=1.11.0 -release=1 -source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz - 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.tar.gz) build() { cd ${name#*-}-$version - 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 setup.py build - local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])') + /usr/bin/python setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 - 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 setup.py build - - /usr/bin/python setup.py install \ - --prefix=/usr --root=$PKG --optimize=1 - fi + # remove sdist metadata, as wheel metadata will be used with python-pip + find $PKG/usr/lib/python*/site-packages/ -maxdepth 1 -type f \ + -name "${name#*-}-$version-py*.egg-info" -delete } |