summaryrefslogtreecommitdiff
path: root/repo/python/python.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-06 00:20:49 +0000
committerdavidovski <david@davidovski.xyz>2022-03-06 00:20:49 +0000
commitad95cf3c8430f90225b628e072c35717ce86945c (patch)
treea58f33d4d534e7d5544e7249a52a0003386fe380 /repo/python/python.xibuild
parent80220d777d783fc0b11c491f0c93eb712d38e427 (diff)
added pypi python modules
Diffstat (limited to 'repo/python/python.xibuild')
-rw-r--r--repo/python/python.xibuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/repo/python/python.xibuild b/repo/python/python.xibuild
new file mode 100644
index 0000000..4cc8ddd
--- /dev/null
+++ b/repo/python/python.xibuild
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+
+MAKEDEPS="make autoconf automake autoconf-archive"
+DEPS="bzip2 expat gdbm libffi libnsl libxcrypt openssl 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 () {
+ CFLAGS="-flto"
+ autoreconf -i
+ GREP="/usr/bin/ggrep" ./configure --prefix=/usr \
+ --enable-shared \
+ --with-system-expat \
+ --with-system-ffi \
+ --with-ensurepip=yes \
+ --enable-optimizations &&
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+ ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python
+ ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip
+}