From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/python/python.xibuild | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 repo/python/python.xibuild (limited to 'repo/python/python.xibuild') diff --git a/repo/python/python.xibuild b/repo/python/python.xibuild new file mode 100644 index 0000000..d821632 --- /dev/null +++ b/repo/python/python.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +MAKEDEPS="make autoconf automake autoconf-archive sqlite3" +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 () { + 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 +} -- cgit v1.2.1