blob: 257fab961782711bd0b16166cd3f9e4215188a53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
name=python
version=3.13.2
release=1
source="https://www.$name.org/ftp/$name/$version/Python-$version.tar.xz"
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
}
|