From 4e867535625579e65445278fdb74912761c2185f Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 29 Jan 2025 00:58:50 +0800 Subject: python: updated to 3.13.1 --- repos/extra/python/abuild | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'repos/extra/python/abuild') 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 } + -- cgit v1.2.3