1
0
forked from ports/opt

python3-build: use pip to build distribution package

This commit is contained in:
Tim Biermann 2023-04-02 21:12:07 +02:00
parent 9c6842f304
commit 8db9a30f8c
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 19 additions and 13 deletions

@ -5,19 +5,30 @@ 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/build-0.10.0.dist-info/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/INSTALLER
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/LICENSE
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/METADATA
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/RECORD
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/REQUESTED (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/WHEEL
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/direct_url.json
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build-0.10.0.dist-info/entry_points.txt
drwxr-xr-x root/root usr/lib/python3.10/site-packages/build/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__init__.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__main__.py
drwxr-xr-x root/root usr/lib/python3.10/site-packages/build/__pycache__/
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__init__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__init__.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__init__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__main__.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__main__.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/__main__.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/env.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/env.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/env.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/util.cpython-310.opt-1.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/util.cpython-310.opt-2.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/__pycache__/util.cpython-310.pyc
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/env.py
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/py.typed (EMPTY)
-rw-r--r-- root/root usr/lib/python3.10/site-packages/build/util.py

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/W3vPJlE6LqKcDAQWy2Tusb730lIuc67U+huAUXFWpOTHSUzZDprkkOGOtZ5iHoPM5jpEMKORiRkNhtEKKvp2Ac=
SHA256 (Pkgfile) = bbc98abab02dac52702ed47126baa71985df49fd46f6c04cde160defb0133ee6
SHA256 (.footprint) = 82798cddb98f164e6808c531fbe04db69a8009883fd1751db43c7211a0f2a513
RWSE3ohX2g5d/cGjAKIF1ImKg0EUCg+6L+R3Pvu/qDeOMN8gi1l0eU1aNyoh0QtEIAaponyTLQMuXsfiQbET4xWHZJyaH9qTGg0=
SHA256 (Pkgfile) = 665d4e252da2c59f27b1083e16a4b0f32b3239098b474421ca38e54a55d70350
SHA256 (.footprint) = 16c792a323be093fdc4449eccada4ef1079f16d3fd6e26a9b4cc655d4c6c42e3
SHA256 (build-0.10.0.tar.gz) = d5b71264afdb5951d6704482aac78de887c80691c52b88a9ad195983ca2c9269

@ -11,15 +11,10 @@ source=(https://pypi.python.org/packages/source/b/build/build-$version.tar.gz)
build() {
cd build-$version
if ! prt-get isinst python3-flit-core; then
for i in build flit-core installer; do
/usr/bin/pip3 install --root=$SRC/tmp $i
done
PIP_CONFIG_FILE=/dev/null /usr/bin/pip3 install --isolated --root=$PKG \
--ignore-installed --no-deps .
PYTHON_VERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
export PYTHONPATH=$SRC/tmp/usr/lib/python${PYTHON_VERSION}/site-packages
fi
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
/usr/bin/python3 -m compileall -d /usr/lib $PKG
/usr/bin/python3 -O -m compileall -d /usr/lib $PKG
/usr/bin/python3 -OO -m compileall -d /usr/lib $PKG
}