aboutsummaryrefslogtreecommitdiff
path: root/extra/python2/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python2/build')
-rwxr-xr-xextra/python2/build14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/python2/build b/extra/python2/build
new file mode 100755
index 00000000..3b3866ff
--- /dev/null
+++ b/extra/python2/build
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+./configure \
+ --prefix=/usr \
+ --without-ensurepip
+
+make
+make DESTDIR="$1" install
+
+rm "$1/usr/bin/2to3"
+rm "$1/usr/bin/python"
+
+# Make static library writable.
+chmod -v u+w "$1/usr/lib/libpython"*.a