summaryrefslogtreecommitdiff
path: root/python-pyparsing
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2017-02-18 15:31:01 +1100
committerDanny Rawlins <monster.romster@gmail.com>2017-02-18 15:31:01 +1100
commitb0ff91a4976316303efc40290478b55a11e3c269 (patch)
tree6b59688a99ca8a6d910e918ae4d82b0fd5fdb83c /python-pyparsing
parent844e8080d59310982fb31b759a278fb12ab7cab3 (diff)
parent12bebd74959180a86c98c19f16c3128db7616d05 (diff)
downloadopt-b0ff91a4976316303efc40290478b55a11e3c269.tar.gz
opt-b0ff91a4976316303efc40290478b55a11e3c269.tar.xz
python-pyparsing: move PYTHONVERSION outside of if block
Diffstat (limited to 'python-pyparsing')
-rw-r--r--python-pyparsing/Pkgfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/python-pyparsing/Pkgfile b/python-pyparsing/Pkgfile
index 22201b34e..a851141e3 100644
--- a/python-pyparsing/Pkgfile
+++ b/python-pyparsing/Pkgfile
@@ -5,19 +5,20 @@
name=python-pyparsing
version=2.1.10
-release=2
-source=(https://files.pythonhosted.org/packages/source/${name:0:1}/$name/$name-$version.tar.gz
+release=3
+source=(https://files.pythonhosted.org/packages/source/${name:7: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 '^python-(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

Generated by cgit