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/abuild25
1 files changed, 19 insertions, 6 deletions
diff --git a/repos/extra/python/abuild b/repos/extra/python/abuild
index 617ab7ef..39a6fec3 100644
--- a/repos/extra/python/abuild
+++ b/repos/extra/python/abuild
@@ -1,5 +1,5 @@
name=python
-version=3.12.7
+version=3.13.1
release=1
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz"
build_opt="--without-ensurepip
@@ -8,11 +8,24 @@ build_opt="--without-ensurepip
--with-system-ffi
--enable-optimizations"
-prebuild() {
- # Remove tests
- rm -rvf Lib/test Lib/*/test Lib/*/tests Lib/*/idle_test
-}
+build() {
+ # Reported 20-27% performance improvements.
+ # See: "PythonNoSemanticInterpositionSpeedup"
+ export CFLAGS="$CFLAGS -fno-semantic-interposition"
+ export LDFLAGS="$LDFLAGS -fno-semantic-interposition"
-postbuild() {
+ ./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
}
+