summaryrefslogtreecommitdiff
path: root/python3-pyparsing/Pkgfile
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2017-02-18 15:01:22 +1100
committerDanny Rawlins <monster.romster@gmail.com>2017-02-18 15:01:22 +1100
commit14d2acafab7e4a5dd537520b8a1f3414ba7a578c (patch)
tree56af670e59359c813790420308080e945ea6d2f2 /python3-pyparsing/Pkgfile
parenta2c26aacc0290da5ef0d7fd48b87a13f647ba1df (diff)
downloadopt-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/Pkgfile6
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

Generated by cgit