35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# Template file for 'python3-build'
|
|
pkgname=python3-build
|
|
version=1.0.3
|
|
revision=2
|
|
# This package is used by the python3-pep517 build style; using that style here
|
|
# would create a build cycle
|
|
build_style=python3-module
|
|
_depends="python3-packaging python3-pyproject-hooks"
|
|
hostmakedepends="python3-flit_core python3-installer $_depends"
|
|
depends="$_depends"
|
|
short_desc="Simple, correct PEP 517 build frontend"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="MIT"
|
|
homepage="https://pypa-build.readthedocs.io/"
|
|
changelog="https://raw.githubusercontent.com/pypa/build/main/CHANGELOG.rst"
|
|
distfiles="${PYPI_SITE}/b/build/build-${version}.tar.gz"
|
|
checksum=538aab1b64f9828977f84bc63ae570b060a8ed1be419e7870b8b4fc5e6ea553b
|
|
# PyPI package provides no tests
|
|
make_check=no
|
|
|
|
do_build() {
|
|
local pypath="./src"
|
|
if [ -n "${PYTHONPATH}" ]; then
|
|
pypath="${pypath}:${PYTHONPATH}"
|
|
fi
|
|
|
|
PYTHONPATH="${pypath}" python3 -m build --no-isolation --wheel .
|
|
}
|
|
|
|
do_install() {
|
|
python3 -m installer --destdir "${DESTDIR}" \
|
|
"dist/build-${version}-py3-none-any.whl"
|
|
vlicense LICENSE
|
|
}
|