-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
34 lines (31 loc) · 1.05 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Template file for 'python3-build'
pkgname=python3-build
version=1.2.1
revision=1
# 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=526263f4870c26f26c433545579475377b2b7588b6f1eac76a001e873ae3e19d
# 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
}