blob: cc3cfec84a0a98e7a22758f98e356a6d6e9017b5 (
plain)
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
35
36
37
38
39
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
|