diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
| commit | a64930636462bf24118ca7266f699ce2b696e821 (patch) | |
| tree | 58d116ac5f03aa9e84ece6e4ffa6b489573042a4 /repos/extra/python/abuild | |
| parent | ddd8e1a8fab2ac39396282a7c09ddf6eca219613 (diff) | |
| download | alicelinux-a64930636462bf24118ca7266f699ce2b696e821.tar.gz alicelinux-a64930636462bf24118ca7266f699ce2b696e821.zip | |
clang branch updated
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 +} |