diff options
Diffstat (limited to 'repos/extra/python/abuild')
| -rw-r--r-- | repos/extra/python/abuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repos/extra/python/abuild b/repos/extra/python/abuild new file mode 100644 index 00000000..9ecef6e1 --- /dev/null +++ b/repos/extra/python/abuild @@ -0,0 +1,31 @@ +name=python +version=3.13.2 +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 +} |