python-pyparsing: move PYTHONVERSION outside of if block
This commit is contained in:
commit
b0ff91a497
@ -5,19 +5,20 @@
|
|||||||
|
|
||||||
name=python-pyparsing
|
name=python-pyparsing
|
||||||
version=2.1.10
|
version=2.1.10
|
||||||
release=2
|
release=3
|
||||||
source=(https://files.pythonhosted.org/packages/source/${name:0:1}/$name/$name-$version.tar.gz
|
source=(https://files.pythonhosted.org/packages/source/${name:7:1}/${name#*-}/${name#*-}-$version.tar.gz
|
||||||
https://bootstrap.pypa.io/get-pip.py)
|
https://bootstrap.pypa.io/get-pip.py)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${name#*-}-$version
|
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
|
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
|
||||||
|
|
||||||
install -d build
|
install -d build
|
||||||
/usr/bin/python $SRC/get-pip.py --root=$SRC/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 \
|
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
|
||||||
/usr/bin/python setup.py build
|
/usr/bin/python setup.py build
|
||||||
|
|
||||||
|
@ -5,19 +5,19 @@
|
|||||||
|
|
||||||
name=python3-pyparsing
|
name=python3-pyparsing
|
||||||
version=2.1.10
|
version=2.1.10
|
||||||
release=2
|
release=3
|
||||||
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
||||||
https://bootstrap.pypa.io/get-pip.py)
|
https://bootstrap.pypa.io/get-pip.py)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${name#*-}-$version
|
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
|
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
|
||||||
install -d build
|
install -d build
|
||||||
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/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 \
|
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
|
||||||
/usr/bin/python3 setup.py build
|
/usr/bin/python3 setup.py build
|
||||||
|
|
||||||
|
@ -52,7 +52,6 @@ build() {
|
|||||||
-sysconfdir /usr/etc/xdg \
|
-sysconfdir /usr/etc/xdg \
|
||||||
-confirm-license \
|
-confirm-license \
|
||||||
-dbus-linked \
|
-dbus-linked \
|
||||||
-no-cups \
|
|
||||||
-no-egl \
|
-no-egl \
|
||||||
-nomake examples \
|
-nomake examples \
|
||||||
-no-pch \
|
-no-pch \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user