summaryrefslogtreecommitdiff
path: root/repo/system/python.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
committerdavidovski <david@davidovski.xyz>2022-03-01 21:25:54 +0000
commite8213fac46bfcb8068a883cb88b2bb1587f190f9 (patch)
tree8ec5946d18961404efb12700267e10cffffa6db7 /repo/system/python.xibuild
parent79c82d8fc0a4f6618429a0373bb832afd105543e (diff)
made packages work with musl
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
}