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.xibuild17
1 files changed, 17 insertions, 0 deletions
diff --git a/repo/system/python.xibuild b/repo/system/python.xibuild
new file mode 100644
index 0000000..7e71733
--- /dev/null
+++ b/repo/system/python.xibuild
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+DEPS=(bzip2 expat gdbm libffi libnsl libxcrypt openssl zlib)
+
+SOURCE=https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
+DESC="The Python development environment"
+
+build () {
+ ./configure --prefix=/usr --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --enable-optimizations --with-ssl --with-requests
+ make
+ make DESTDIR=$PKG_DEST install
+}
+
+package () {
+ ln -s /usr/bin/python3 $PKG_DEST/usr/bin/python
+ ln -s /usr/bin/pip3 $PKG_DEST/usr/bin/pip
+}