diff options
Diffstat (limited to 'python3-build/Pkgfile')
-rw-r--r-- | python3-build/Pkgfile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/python3-build/Pkgfile b/python3-build/Pkgfile index b68c4fff1..0979305c7 100644 --- a/python3-build/Pkgfile +++ b/python3-build/Pkgfile @@ -1,18 +1,25 @@ # Description: A simple, correct PEP517 package builder # URL: https://github.com/pypa/build # Maintainer: Tim Biermann, tbier at posteo dot de -# Depends on: python3-packaging python3-pep517 python3-tomli python3-wheel +# Depends on: python3-packaging python3-pep517 python3-wheel python3-pyproject-hooks name=python3-build -version=0.9.0 +version=0.10.0 release=1 source=(https://pypi.python.org/packages/source/b/build/build-$version.tar.gz) build() { cd build-$version - /usr/bin/python3 setup.py build - /usr/bin/python3 setup.py install --skip-build \ - --optimize=1 \ - --prefix=/usr \ - --root=$PKG + + 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 + + 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 } |