File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
srcpkgs/python3-packaging-bootstrap Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ # Template file for 'python3-packaging-bootstrap'
2+ pkgname=python3-packaging-bootstrap
3+ version=24.1
4+ revision=1
5+ # This package is required by python3-build, used by the python3-pep517 style;
6+ # using that style here would create a cycle
7+ build_style=python3-module
8+ hostmakedepends="python3-flit_core-bootstrap python3-installer-bootstrap"
9+ depends="python3"
10+ short_desc="Core utilities for Python 3 packages (for xbps-src use)"
11+ maintainer="Andrew J. Hesford <
[email protected] >"
12+ license="Apache-2.0, BSD-2-Clause"
13+ homepage="https://github.com/pypa/packaging"
14+ distfiles="${PYPI_SITE}/p/packaging/packaging-${version}.tar.gz"
15+ checksum=026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002
16+ make_check=no # provides no tests, bootstrap
17+ repository=bootstrap
18+ nopyprovides=yes
19+ noverifypydeps=yes
20+
21+ do_build() {
22+ local pypath="/${py3_sitelib}-bootstrap"
23+ if [ -n "${PYTHONPATH}" ]; then
24+ pypath="${pypath}:${PYTHONPATH}"
25+ fi
26+
27+ PYTHONPATH="${pypath}" python3 -m flit_core.wheel
28+ }
29+
30+ do_install() {
31+ local pypath="/${py3_sitelib}-bootstrap"
32+ if [ -n "${PYTHONPATH}" ]; then
33+ pypath="${pypath}:${PYTHONPATH}"
34+ fi
35+
36+ PYTHONPATH="${pypath}" python3 -m installer --destdir "${DESTDIR}" \
37+ "dist/packaging-${version}-py3-none-any.whl"
38+ mv "${DESTDIR}/${py3_sitelib}" "${DESTDIR}/${py3_sitelib}-bootstrap"
39+ vlicense LICENSE
40+ }
You can’t perform that action at this time.
0 commit comments