1
0
forked from ports/contrib

python3-entrypoints: changed pip routine: install specific version, optionally use python3-flit-core instead of python3-flit

This commit is contained in:
Tim Biermann 2023-04-02 17:10:51 +02:00
parent 3b4e91c6b9
commit 031024e593
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 12 additions and 10 deletions

View File

@ -5,10 +5,8 @@ drwxr-xr-x root/root usr/lib/python3.10/site-packages/
drwxr-xr-x root/root usr/lib/python3.10/site-packages/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/__pycache__/entrypoints.cpython-310.pyc
drwxr-xr-x root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/INSTALLER
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/REQUESTED (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints-0.4.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.10/site-packages/entrypoints.py

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3xR9mMXK1CdBZi9+N0aa/v3qRTnqNTsvs7zIbkRzsZsP8DF5yPAXppu6e8kBdXU1fYVnEjJsYkZ1+8rMkjq04gI=
SHA256 (Pkgfile) = 7528b3c150085c7a42cb8be67de2bcc2b4ae9ba37784f9938fd3ee611bf6e239
SHA256 (.footprint) = cdd6af21032cad0cbeb994f85c3bb7bc46026f73c63dda76ccbef2c748190861
RWSagIOpLGJF34lewPlEQL9J4uzxg9aE+ScM/fxLCYUkNKfDokpyjMBZytRZ7Jcq01hjRICi/Ku2IOZSlgCy3HNeOzBknQIboAI=
SHA256 (Pkgfile) = ed32ff731e82926d8115189469b00145b365af0e30733cc5f96274fadb56a1fa
SHA256 (.footprint) = facc7ba8f49f2979983cae00c09172b95a7d4f30fce814dbaf453893a6900656
SHA256 (python3-entrypoints-0.4-github.tar.gz) = d2197a94aa73e70a7f60600e654ac9918ca2a0ee5480eb875296c42220a02272
SHA256 (entrypoints-0.4.tar.gz) = b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4

View File

@ -2,7 +2,7 @@
# URL: https://github.com/takluyver/entrypoints
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-pip
# Optional: python3-flit
# Optional: python3-flit-core
name=python3-entrypoints
version=0.4
@ -12,10 +12,14 @@ source=(https://github.com/takluyver/entrypoints/archive/$version/$name-$version
build() {
cd entrypoints-$version
if prt-get isinst python3-flit; then
/usr/bin/python3 -m flit build --format wheel
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps dist/*.whl
_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 entrypoints
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --compile --no-deps entrypoints==$version
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/entrypoints-$version.dist-info/{INSTALLER,REQUESTED}
}