Gentoo Archives: gentoo-commits

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