summaryrefslogtreecommitdiff
path: root/strata/python-core/cpython.morph
diff options
context:
space:
mode:
Diffstat (limited to 'strata/python-core/cpython.morph')
-rw-r--r--strata/python-core/cpython.morph13
1 files changed, 13 insertions, 0 deletions
diff --git a/strata/python-core/cpython.morph b/strata/python-core/cpython.morph
new file mode 100644
index 00000000..853b0630
--- /dev/null
+++ b/strata/python-core/cpython.morph
@@ -0,0 +1,13 @@
+name: cpython
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ ./configure --prefix="$PREFIX" \
+ --enable-shared \
+ --with-ensurepip=upgrade \
+ --with-system-expat \
+ --with-system-ffi
+post-install-commands:
+- ln -sf python2.7 "$DESTDIR"/"$PREFIX"/bin/python
+- test -x "$DESTDIR"/"$PREFIX"/bin/python2 || ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2