summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-12-06 17:02:55 +0100
committerMichał Górny <mgorny@gentoo.org>2015-12-09 21:41:16 +0100
commitb284e54e1905734b24500bfebdadc2e0b0c5a849 (patch)
tree9bfe55d5eee2a2e155df53643b5953dd57939618 /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Mark _PYTHON_ALL_IMPLS read-only (diff)
downloadgentoo-b284e54e1905734b24500bfebdadc2e0b0c5a849.tar.gz
gentoo-b284e54e1905734b24500bfebdadc2e0b0c5a849.tar.bz2
gentoo-b284e54e1905734b24500bfebdadc2e0b0c5a849.zip
python-utils-r1.eclass: Reorder implementations to semi-ascending order
Reorder the Python implementations to ascending version order, with CPython listed first and other implementations in descending preference. The previous ordering has been used for two reasons: 1. There were packages which supported Python 3.x or PyPy partially but their documentation builds or test functions required CPython 2.x. The specific ordering caused python_export_best (the predecessor of python_setup) to use CPython 2.x for those tasks. This is now replaced by explicit implementation restrictions in python_setup. 2. PyPy setup runs were usually slower than CPython, and CPython 3.x runs were often slower due to 2to3 calls. Combined with parallel build runs, this ordering caused slower builds to start earlier and sometimes resulted in more efficient use of threads. However, nowadays we no longer do parallel builds. Therefore, it seems reasonable to finally reorder the implementations into a more intuitive order.
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 0bce6a9a79b..3ea23a81f2d 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -41,10 +41,10 @@ inherit toolchain-funcs
# @DESCRIPTION:
# All supported Python implementations, most preferred last.
declare -g -r _PYTHON_ALL_IMPLS=(
- jython2_5 jython2_7
- pypy pypy3
- python3_3 python3_4 python3_5
python2_7
+ python3_3 python3_4 python3_5
+ pypy pypy3
+ jython2_5 jython2_7
)
# @FUNCTION: _python_impl_supported