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-propcache/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'python/py-propcache/MAKEPKG')
| -rw-r--r-- | python/py-propcache/MAKEPKG | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/python/py-propcache/MAKEPKG b/python/py-propcache/MAKEPKG new file mode 100644 index 0000000..f5df89d --- /dev/null +++ b/python/py-propcache/MAKEPKG @@ -0,0 +1,38 @@ +#!/bin/mkpkg +# description: Fast property caching +# url: https://pypi.org/project/propcache/ +name=py-propcache +_name=propcache +version=0.5.4 +release=1 +depends=(python3) +makedeps=(py-installer py-build py-expandvars py-cython py-wheel py-setuptools) +source=(https://github.com/aio-libs/propcache/archive/v$version.tar.gz) +sha256sums=( + "e1ec6ac819f38710cf99cad543e857366622e370cbd3eef1e636cff48fa53391" +) + +build() { + cd $_name-$version + # Relax Cython version pin in bundled pep517_backend (we have newer Cython) + sed -i 's/ ~= 3\.[0-9][0-9]*\.[0-9][0-9]*//' packaging/pep517_backend/_backend.py 2>/dev/null || true + + # Build C extension from source — GitHub tarball includes pep517_backend + /usr/bin/python3 -m build --no-isolation --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" + /usr/bin/python3 -m installer --destdir "$PKG" --prefix /usr dist/*.whl + + /usr/bin/python3 -OO -m compileall -b -q "$_sitedir" + find "$_sitedir" -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true + find "$_sitedir" -name "*.exe" -delete +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
