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