Skip to content

Commit 144dd0f

Browse files
classabbyampahesford
authored andcommitted
New package: python3-installer-bootstrap-0.7.0
dependency of python3-packaging-bootstrap
1 parent df33381 commit 144dd0f

File tree

1 file changed

+41
-0
lines changed
  • srcpkgs/python3-installer-bootstrap

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Template file for 'python3-installer-bootstrap'
2+
pkgname=python3-installer-bootstrap
3+
version=0.7.0
4+
revision=1
5+
# This package is used by the python3-pep517 build style; using that style here
6+
# would create a build cycle
7+
build_style=python3-module
8+
hostmakedepends="python3-flit_core-bootstrap"
9+
depends="python3"
10+
short_desc="Low-level library for installing from a Python wheel (for xbps-src use)"
11+
maintainer="Andrew J. Hesford <[email protected]>"
12+
license="MIT"
13+
homepage="https://installer.readthedocs.io/"
14+
distfiles="${PYPI_SITE}/i/installer/installer-${version}.tar.gz"
15+
checksum=a26d3e3116289bb08216e0d0f7d925fcef0b0194eedfa0c944bcaaa106c4b631
16+
make_check=no # 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="./src:/${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/installer-${version}-py3-none-any.whl"
38+
mv "${DESTDIR}/${py3_sitelib}" "${DESTDIR}/${py3_sitelib}-bootstrap"
39+
40+
vlicense LICENSE
41+
}

0 commit comments

Comments
 (0)