ports/opt (3.3): python3-pyparsing: move PYTHONVERSION outside of if block
commit 14d2acafab7e4a5dd537520b8a1f3414ba7a578c Author: Danny Rawlins <monster.romster@gmail.com> Date: Sat Feb 18 15:01:22 2017 +1100 python3-pyparsing: move PYTHONVERSION outside of if block diff --git a/python3-pyparsing/Pkgfile b/python3-pyparsing/Pkgfile index c1fff76..8ffd381 100644 --- a/python3-pyparsing/Pkgfile +++ b/python3-pyparsing/Pkgfile @@ -5,19 +5,19 @@ name=python3-pyparsing version=2.1.10 -release=2 +release=3 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz https://bootstrap.pypa.io/get-pip.py) build() { cd ${name#*-}-$version + local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') + if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then install -d build /usr/bin/python3 $SRC/get-pip.py --root=$SRC/build - local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') - PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ /usr/bin/python3 setup.py build
participants (1)
-
crux@crux.nu