diff options
Diffstat (limited to 'strata/python2-core')
-rw-r--r-- | strata/python2-core/python2.morph | 13 | ||||
-rw-r--r-- | strata/python2-core/pyyaml-python2.morph | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/strata/python2-core/python2.morph b/strata/python2-core/python2.morph new file mode 100644 index 00000000..d5f6913a --- /dev/null +++ b/strata/python2-core/python2.morph @@ -0,0 +1,13 @@ +name: python2 +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 diff --git a/strata/python2-core/pyyaml-python2.morph b/strata/python2-core/pyyaml-python2.morph new file mode 100644 index 00000000..54d2b035 --- /dev/null +++ b/strata/python2-core/pyyaml-python2.morph @@ -0,0 +1,6 @@ +name: pyyaml-python2 +kind: chunk +build-commands: +- python2 setup.py --without-libyaml build +install-commands: +- python2 setup.py --without-libyaml install --prefix="$PREFIX" --root "$DESTDIR" |