1
0
forked from ports/opt

python3-tomli: use pip to build distribution package

This commit is contained in:
Tim Biermann 2023-04-08 16:37:28 +02:00
parent c6a689b92c
commit cb4fdbf526
3 changed files with 7 additions and 14 deletions

View File

@ -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/tomli-2.0.1.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/INSTALLER
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/REQUESTED (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/direct_url.json
drwxr-xr-x root/root usr/lib/python3.10/site-packages/tomli/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/tomli/__init__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/tomli/__pycache__/

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/asileJeCHpewwDJhoDavqnz8xpl+acE3RIYvfIufp5ahR8PlT6NnAIKD7llkSeOjtCybHSyUzDgA92dcBQ0Kw0=
SHA256 (Pkgfile) = 094af748721d84f8ae269a36df0ab672f989970c8e2d5fc325a008147e52afec
SHA256 (.footprint) = f99fa4f61f539d8fab5a35cf63ffabbedacbd03ace5c4ea8af9957c79b4be78d
RWSE3ohX2g5d/a4FO7wY5X9X94hg2ES964iuvDo1pcZS3jioEZCXaEG9i7/PqDaC44xbMo3PQrsI2Vquq/vJbKqzggoZV0FM0Aw=
SHA256 (Pkgfile) = de06fa90a444c6652d0370fafdba6c6a47970add4ffc9cbbe480a3383551f9c3
SHA256 (.footprint) = 6ef041b176b233331172c7b137166ffb8a9dac92c529214de10f5ff0d67ea498
SHA256 (tomli-2.0.1.tar.gz) = de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f

View File

@ -2,7 +2,6 @@
# URL: https://github.com/hukkin/tomli
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-pip
# Optional: python3-flit-core
name=python3-tomli
version=2.0.1
@ -12,14 +11,5 @@ source=(https://pypi.python.org/packages/source/t/tomli/tomli-$version.tar.gz)
build() {
cd tomli-$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 tomli
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/tomli-$version.dist-info/{INSTALLER,REQUESTED}
/usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps .
}