34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
# Description: Python parsing module.
|
|
# URL: https://pypi.python.org/pypi/pyparsing/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: python
|
|
|
|
name=python-pyparsing
|
|
version=2.1.10
|
|
release=1
|
|
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
|
|
|
|
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
|
|
|
|
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
|
|
/usr/bin/python setup.py install \
|
|
--prefix=/usr --root=$PKG --optimize=1
|
|
else
|
|
/usr/bin/python setup.py build
|
|
|
|
/usr/bin/python setup.py install \
|
|
--prefix=/usr --root=$PKG --optimize=1
|
|
fi
|
|
}
|