python3-pyparsing: use pip to build distribution package
This commit is contained in:
parent
cb4fdbf526
commit
849a2df3c9
@ -3,10 +3,13 @@ drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/INSTALLER
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/LICENSE
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/METADATA
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/RECORD
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/REQUESTED (EMPTY)
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/WHEEL
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing-3.0.9.dist-info/direct_url.json
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/pyparsing/
|
||||
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pyparsing/__init__.py
|
||||
drwxr-xr-x root/root usr/lib/python3.10/site-packages/pyparsing/__pycache__/
|
||||
|
@ -1,5 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/WQxtWdECH0hNgqWb7+VBL11/ADO4g+2hU2f1XozV7hrTZcWYDqGyPfVh4vl9NCfnYVZtSd8H44nCu847f9BGA4=
|
||||
SHA256 (Pkgfile) = 54b8e5ae3d66830b0f7c16d28ccff976bcec514190df4fe5d771e2548b4032bd
|
||||
SHA256 (.footprint) = acc8f99fde14baa7007326c121c85814f109c649927336ed9c2c9aab2bf9fdc4
|
||||
RWSE3ohX2g5d/YtaZd4jnqhHQ3m8DGcHlbcXAgnGWR1J5B/uWwyRYBv4+wyYZxeqyH59HV8kswSs9kZzrSgsJG39Dkk8DGh+TQ0=
|
||||
SHA256 (Pkgfile) = aeea0ed3d5d17100ae194ec617b259f572e7c47cef05ccf0e81f5a028b5a5206
|
||||
SHA256 (.footprint) = e0a5655681695183a3228b02f595969891b83600b6b5bfad9a0b44fd2fa27946
|
||||
SHA256 (pyparsing-3.0.9.tar.gz) = 2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb
|
||||
|
@ -2,7 +2,6 @@
|
||||
# URL: https://pypi.python.org/pypi/pyparsing/
|
||||
# Maintainer: Danny Rawlins, crux at romster dot me
|
||||
# Depends on: python3-pip
|
||||
# Optional: python3-flit-core
|
||||
|
||||
name=python3-pyparsing
|
||||
version=3.0.9
|
||||
@ -12,14 +11,5 @@ source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${
|
||||
build() {
|
||||
cd ${name#*-}-$version
|
||||
|
||||
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
||||
|
||||
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}
|
||||
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps .
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user