diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-02-18 15:01:22 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-02-18 15:01:22 +1100 |
commit | 14d2acafab7e4a5dd537520b8a1f3414ba7a578c (patch) | |
tree | 56af670e59359c813790420308080e945ea6d2f2 /python3-pyparsing/Pkgfile | |
parent | a2c26aacc0290da5ef0d7fd48b87a13f647ba1df (diff) | |
download | opt-14d2acafab7e4a5dd537520b8a1f3414ba7a578c.tar.gz opt-14d2acafab7e4a5dd537520b8a1f3414ba7a578c.tar.xz |
python3-pyparsing: move PYTHONVERSION outside of if block
Diffstat (limited to 'python3-pyparsing/Pkgfile')
-rw-r--r-- | python3-pyparsing/Pkgfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python3-pyparsing/Pkgfile b/python3-pyparsing/Pkgfile index c1fff76d5..8ffd381d5 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 |