26 lines
855 B
Plaintext
26 lines
855 B
Plaintext
# 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-wheel python3-pyproject-hooks
|
|
|
|
name=python3-build
|
|
version=0.10.0
|
|
release=1
|
|
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
|
|
|
|
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
|
|
}
|