summaryrefslogtreecommitdiff
path: root/repo/system/python.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/system/python.xibuild')
-rw-r--r--repo/system/python.xibuild25
1 files changed, 21 insertions, 4 deletions
diff --git a/repo/system/python.xibuild b/repo/system/python.xibuild
index d3c7fe8..2a71dea 100644
--- a/repo/system/python.xibuild
+++ b/repo/system/python.xibuild
@@ -1,14 +1,31 @@
#!/bin/sh
-MAKEDEPS="make"
-DEPS="bzip2 expat gdbm libffi libnsl libxcrypt libressl zlib"
-PKG_VER=3.10.0
+MAKEDEPS="make autoconf automake autoconf-archive"
+DEPS="bzip2 expat gdbm libffi libnsl libxcrypt libressl zlib grep"
+
+PKG_VER=3.10.2
SOURCE=https://www.python.org/ftp/python/$PKG_VER/Python-$PKG_VER.tgz
DESC="The Python development environment"
+prepare () {
+ rm -r Modules/expat
+ rm -r Modules/_ctypes/darwin*
+ rm -r Modules/_ctypes/libffi*
+}
+
build () {
- ./configure --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-optimizations --with-ssl --with-requests
+ CFLAGS="-flto"
+ autoreconf -i
+ GREP="/usr/bin/ggrep" ./configure --prefix=/usr \
+ --enable-shared \
+ --with-system-expat \
+ --with-system-ffi \
+ --with-ensurepip=yes \
+ --with-pip=yes \
+ --enable-ipv6 \
+ --enable-loadable-sqlite-extensions \
+ --with-computed-gotos
make
}