opt/python3-build/Pkgfile

21 lines
640 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-pyproject-hooks python3-tomli
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
PIP_CONFIG_FILE=/dev/null /usr/bin/pip3 install --isolated --root=$PKG \
--ignore-installed --no-deps .
/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
}