aboutsummaryrefslogtreecommitdiff
path: root/python-gpep517/abuild
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2025-06-03 14:32:36 +0000
commit93a354611e38a6949add5c2e5ccc93ef79b9755f (patch)
tree7fee41752b1047d74c59f8ee046cd62735e7e934 /python-gpep517/abuild
parent35912580b66e9439f91ea441938828ad8aa33b0d (diff)
downloadalicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz
alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'python-gpep517/abuild')
-rw-r--r--python-gpep517/abuild16
1 files changed, 16 insertions, 0 deletions
diff --git a/python-gpep517/abuild b/python-gpep517/abuild
new file mode 100644
index 00000000..0b5d131d
--- /dev/null
+++ b/python-gpep517/abuild
@@ -0,0 +1,16 @@
+name=python-gpep517
+version=19
+release=1
+source="https://github.com/mgorny/gpep517/archive/v${version}/gpep517-v${version}.tar.gz
+ default-bytecode-levels.patch
+ gpep517"
+
+build() {
+ sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
+ mkdir -p $PKG/$sitedir
+ find gpep517 -name "*.orig" -delete
+ cp -a gpep517 $PKG/$sitedir
+ python3 -m compileall $PKG/$sitedir
+
+ install -Dm755 $SRC/gpep517 -t $PKG/usr/bin
+}