diff options
author | Javier Jardón <jjardon@gnome.org> | 2015-09-04 18:21:27 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2015-09-22 02:53:00 +0100 |
commit | 50b12ebbedec8dbf823905d60712784b9a5cdb8f (patch) | |
tree | 9e4eaaa4ccd24aae365126effc167a009fc0d2cd /strata/python-core/cpython.morph | |
parent | d36e5611404f5b0c97d5b4d1b3f49431de9581dc (diff) | |
download | definitions-jjardon/python3_default.tar.gz |
core: Use python3 instead python2jjardon/python3_default
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/python-core/cpython.morph')
-rw-r--r-- | strata/python-core/cpython.morph | 13 |
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 |