blob: 1195a91e3678c215c84533e508df3f3e56281622 (
plain)
1 # Description: Python parsing module.
2 # URL: https://pypi.python.org/pypi/pyparsing/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: python3-pip
5 # Optional: python3-flit-core
6
7 name=python3-pyparsing
8 version=3.0.9
9 release=1
10 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
11
12 build() {
13 cd ${name#*-}-$version
14
15 _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
16
17 if prt-get isinst python3-flit-core; then
18 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
19 /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
20 else
21 /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps pyparsing
22 fi
23
24 rm -rf $PKG/usr/lib/python$_pyver/site-packages/pyparsing-$version.dist-info/{INSTALLER,REQUESTED}
25 }
|