aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/python/abuild
diff options
context:
space:
mode:
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
+}