diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-01-29 00:58:50 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-01-29 00:58:50 +0800 |
| commit | 4e867535625579e65445278fdb74912761c2185f (patch) | |
| tree | 83d9c6342c35ee3faed1725348d952dfd916f572 /repos/extra/python/abuild | |
| parent | bd22d4e0a20372349b12371ec9a1447c058b74da (diff) | |
| download | alicelinux-4e867535625579e65445278fdb74912761c2185f.tar.gz alicelinux-4e867535625579e65445278fdb74912761c2185f.zip | |
python: updated to 3.13.1
Diffstat (limited to 'repos/extra/python/abuild')
| -rw-r--r-- | repos/extra/python/abuild | 25 |
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 } + |