diff options
| author | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:36 +0000 |
|---|---|---|
| committer | Woodpecker CI <emmett1.2miligrams@protonmail.com> | 2025-06-03 14:32:36 +0000 |
| commit | 93a354611e38a6949add5c2e5ccc93ef79b9755f (patch) | |
| tree | 7fee41752b1047d74c59f8ee046cd62735e7e934 /python/abuild | |
| parent | 35912580b66e9439f91ea441938828ad8aa33b0d (diff) | |
| download | alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.tar.gz alicelinux-93a354611e38a6949add5c2e5ccc93ef79b9755f.zip | |
Woodpecker CI 5171f1fdd74e7137c305450dd69a29fa5be4143f [SKIP CI]
Diffstat (limited to 'python/abuild')
| -rw-r--r-- | python/abuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/python/abuild b/python/abuild new file mode 100644 index 00000000..1d55c670 --- /dev/null +++ b/python/abuild @@ -0,0 +1,31 @@ +name=python +version=3.13.3 +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 +} |