aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/python/abuild
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/extra/python/abuild
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/extra/python/abuild')
-rw-r--r--repos/extra/python/abuild18
1 files changed, 18 insertions, 0 deletions
diff --git a/repos/extra/python/abuild b/repos/extra/python/abuild
new file mode 100644
index 00000000..fb2ee4d2
--- /dev/null
+++ b/repos/extra/python/abuild
@@ -0,0 +1,18 @@
+name=python
+version=3.12.3
+release=1
+source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz"
+build_opt="--without-ensurepip
+ --enable-shared
+ --with-system-expat
+ --with-system-ffi
+ --enable-optimizations"
+
+prebuild() {
+ # Remove tests
+ rm -rvf Lib/test Lib/*/test Lib/*/tests Lib/*/idle_test
+}
+
+postbuild() {
+ ln -s python3 $PKG/usr/bin/python
+}