diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /python/py-flit_core/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'python/py-flit_core/MAKEPKG')
| -rw-r--r-- | python/py-flit_core/MAKEPKG | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/python/py-flit_core/MAKEPKG b/python/py-flit_core/MAKEPKG new file mode 100644 index 0000000..cc3cfec --- /dev/null +++ b/python/py-flit_core/MAKEPKG @@ -0,0 +1,40 @@ +#!/bin/mkpkg +# description: A PEP 517 build backend for packages using Flit +# url: https://pypi.org/project/flit_core/ + +name=py-flit_core +_name=flit_core +version=3.12.0 +release=1 +depends=(python3) +makedeps=() +source=(https://github.com/pypa/flit/archive/refs/tags/$version.tar.gz) +sha256sums=( + "c157ff92c01f4bb169182722ff76aadac113926b729215e91909021aa56e2ea3" +) + +build() { + cd flit-$version/flit_core + + # Bootstrap: run flit_core from its own source tree — no pre-installed + # flit_core needed. PYTHONPATH=. makes the local flit_core/ importable. + PYTHONPATH=. /usr/bin/python3 -m flit_core.wheel + + _pyver=$(/usr/bin/python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') + _sitedir="$PKG/usr/lib/python${_pyver}/site-packages" + + install -dm755 "$_sitedir" + # Bootstrap install: zipfile unpack — py-installer not available yet + /usr/bin/python3 -c "import zipfile,glob; zipfile.ZipFile(glob.glob('dist/*.whl')[0]).extractall('$_sitedir')" + + /usr/bin/python3 -OO -m compileall -b -q "$_sitedir" + find "$_sitedir" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh + |
