aboutsummaryrefslogtreecommitdiff
path: root/python/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/abuild')
-rw-r--r--python/abuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/python/abuild b/python/abuild
new file mode 100644
index 00000000..1d55c670
--- /dev/null
+++ b/python/abuild
@@ -0,0 +1,31 @@
+name=python
+version=3.13.3
+release=1
+source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz
+ libressl.diff"
+build_opt="--without-ensurepip
+ --enable-shared
+ --with-system-expat
+ --with-system-ffi
+ --enable-optimizations"
+
+build() {
+ # Reported 20-27% performance improvements.
+ # See: "PythonNoSemanticInterpositionSpeedup"
+ export CFLAGS="$CFLAGS -fno-semantic-interposition"
+ export LDFLAGS="$LDFLAGS -fno-semantic-interposition"
+
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libdir=/usr/lib \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --without-ensurepip \
+ --enable-shared \
+ --with-system-expat
+ make
+ make DESTDIR=$PKG install
+ ln -s python3 $PKG/usr/bin/python
+}