python3-pep517: use pip to build distribution package

This commit is contained in:
Tim Biermann 2023-04-08 16:40:24 +02:00
parent 300ba4cae6
commit ffc5b2b01c
3 changed files with 8 additions and 13 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/pep517-0.13.0.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/INSTALLER
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/REQUESTED (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517-0.13.0.dist-info/direct_url.json
drwxr-xr-x root/root usr/lib/python3.10/site-packages/pep517/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/pep517/__init__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/pep517/__pycache__/

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/QMSghpslmGNfGdNxYjSZm2JrmLzk17c3gpVMuHnmbXuTVcxWu+ebxmj6Q+A1Uc7WaJOtPg+e80RMd5v7+rHmg8=
SHA256 (Pkgfile) = c82c2bb9a2c457b8b5a8814aeb717e45ec669cd5258c97bded7b7e051550b17a
SHA256 (.footprint) = 64ee83a8bcb9cf1c5cac91b6d2f6471f0406960cc1b20621eabeaae26f625f26
RWSE3ohX2g5d/TGd/bA99FS4x3ZJ/qlI2xVoR6aUwgh++Vng5JJI+zqbpQiAEeLydEmrdOArFaZmVP12aWoxvUUIpHIlQLqOqA8=
SHA256 (Pkgfile) = e52ed140d8e715b7fea59633813b37a41777ad9639c934486386858f9d60e4a3
SHA256 (.footprint) = e99f5a7aeb69a7c67ce54f0b73ffe4fe034f9b6ff56f74cef5a9225c3b2310de
SHA256 (pep517-0.13.0.tar.gz) = ae69927c5c172be1add9203726d4b84cf3ebad1edcd5f71fcdc746e66e829f59

View File

@ -11,14 +11,6 @@ source=(https://pypi.python.org/packages/source/p/pep517/pep517-$version.tar.gz)
build() {
cd pep517-$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 pep517
fi
rm -rf $PKG/usr/lib/python$_pyver/site-packages/pep517-$version.dist-info/{INSTALLER,REQUESTED}
PIP_CONFIG_FILE=/dev/null /usr/bin/pip3 install --isolated --root=$PKG \
--ignore-installed --no-deps .
}