summaryrefslogtreecommitdiff
path: root/strata/core
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2015-09-04 18:21:27 +0100
committerBaserock Gerrit <gerrit@baserock.org>2015-10-16 13:00:16 +0000
commit893259d724707190f763a980bc055ad9c87f7535 (patch)
tree2ab1fff831c2f691cf18d4e27fcc9db31e2aea25 /strata/core
parentd282001d128f5e427f09bfe2b5f90af2b35e86bc (diff)
downloaddefinitions-893259d724707190f763a980bc055ad9c87f7535.tar.gz
core: Use python3 instead python2
From [1]: "Python 2.x is legacy, Python 3.x is the present and future of the language" As a reference, python3 is already the default python version in Arch, and other distros like Ubuntu/Debian [2] or Fedora [3] are planning to switch soon [1] https://wiki.python.org/moin/Python2orPython3 [2] https://wiki.ubuntu.com/Python/3 [3] https://fedoraproject.org/wiki/Changes/Python_3_as_Default Change-Id: I6d4d11844d4424bfa49b37fe7d9a3639547c0139
Diffstat (limited to 'strata/core')
-rw-r--r--strata/core/cpython.morph12
-rw-r--r--strata/core/python3.morph13
2 files changed, 13 insertions, 12 deletions
diff --git a/strata/core/cpython.morph b/strata/core/cpython.morph
deleted file mode 100644
index e2f59278..00000000
--- a/strata/core/cpython.morph
+++ /dev/null
@@ -1,12 +0,0 @@
-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:
-- test -x "$DESTDIR"/"$PREFIX"/bin/python2 || ln -s python2.7 "$DESTDIR"/"$PREFIX"/bin/python2
diff --git a/strata/core/python3.morph b/strata/core/python3.morph
new file mode 100644
index 00000000..0d730bc9
--- /dev/null
+++ b/strata/core/python3.morph
@@ -0,0 +1,13 @@
+name: python3
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ ./configure --prefix="$PREFIX" \
+ --sysconfdir=/etc \
+ --enable-shared \
+ --with-system-expat \
+ --with-system-ffi
+post-install-commands:
+- test -x "$DESTDIR"/"$PREFIX"/bin/python || ln -s python3.4 "$DESTDIR"/"$PREFIX"/bin/python
+- test -x "$DESTDIR"/"$PREFIX"/bin/python3 || ln -s python3.4 "$DESTDIR"/"$PREFIX"/bin/python3