Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 02/13] python-utils-r1.eclass: Reorder implementations to semi-ascending order
Date: Sun, 06 Dec 2015 19:04:21
Message-Id: 1449428612-20538-3-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCHES] python-r1 suite clean up & impl reorder by "Michał Górny"
1 Reorder the Python implementations to ascending version order, with
2 CPython listed first and other implementations in descending preference.
3
4 The previous ordering has been used for two reasons:
5
6 1. There were packages which supported Python 3.x or PyPy partially but
7 their documentation builds or test functions required CPython 2.x.
8 The specific ordering caused python_export_best (the predecessor of
9 python_setup) to use CPython 2.x for those tasks. This is now replaced
10 by explicit implementation restrictions in python_setup.
11
12 2. PyPy setup runs were usually slower than CPython, and CPython 3.x
13 runs were often slower due to 2to3 calls. Combined with parallel build
14 runs, this ordering caused slower builds to start earlier and sometimes
15 resulted in more efficient use of threads. However, nowadays we no
16 longer do parallel builds.
17
18 Therefore, it seems reasonable to finally reorder the implementations
19 into a more intuitive order.
20 ---
21 eclass/python-utils-r1.eclass | 6 +++---
22 1 file changed, 3 insertions(+), 3 deletions(-)
23
24 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
25 index 0bce6a9..3ea23a8 100644
26 --- a/eclass/python-utils-r1.eclass
27 +++ b/eclass/python-utils-r1.eclass
28 @@ -41,10 +41,10 @@ inherit toolchain-funcs
29 # @DESCRIPTION:
30 # All supported Python implementations, most preferred last.
31 declare -g -r _PYTHON_ALL_IMPLS=(
32 - jython2_5 jython2_7
33 - pypy pypy3
34 - python3_3 python3_4 python3_5
35 python2_7
36 + python3_3 python3_4 python3_5
37 + pypy pypy3
38 + jython2_5 jython2_7
39 )
40
41 # @FUNCTION: _python_impl_supported
42 --
43 2.6.3

Replies