summaryrefslogtreecommitdiff
path: root/python3/build
diff options
context:
space:
mode:
Diffstat (limited to 'python3/build')
-rw-r--r--python3/build24
1 files changed, 24 insertions, 0 deletions
diff --git a/python3/build b/python3/build
new file mode 100644
index 0000000..fa8baf9
--- /dev/null
+++ b/python3/build
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+# FIXME: make curses and sqlite work
+cat >> Modules/Setup <<EOF
+*disabled*
+_curses _curses_panel _sqlite3
+EOF
+
+for patch in *.patch; do
+ patch -p1 < $patch
+done
+
+export CFLAGS="$CFLAGS -fno-semantic-interposition"
+export LDFLAGS="$LDFLAGS -fno-semantic-interposition"
+
+./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --with-ensurepip=yes \
+ --with-openssl=/usr/openssl/1.1 \
+ --without-doc-strings
+
+gmake EXTRA_CFLAGS="$CFLAGS -DTHREAD_STACK_SIZE=0x100000"
+gmake DESTDIR=$1 install