opt/python3-pyparsing/Pkgfile

26 lines
864 B
Plaintext
Raw Normal View History

2017-02-04 07:50:24 +01:00
# Description: Python parsing module.
# URL: https://pypi.python.org/pypi/pyparsing/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-pip
# Optional: python3-flit-core
2017-02-04 07:50:24 +01:00
name=python3-pyparsing
version=3.0.9
2018-11-10 11:36:17 +01:00
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
2017-02-04 07:50:24 +01:00
build() {
cd ${name#*-}-$version
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
2017-02-04 07:50:24 +01:00
if prt-get isinst python3-flit-core; then
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
else
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps pyparsing
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/pyparsing-$version.dist-info/{INSTALLER,REQUESTED}
2017-02-04 07:50:24 +01:00
}