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 }