From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C476E1384B4 for ; Wed, 9 Dec 2015 19:32:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0EC3321C06B; Wed, 9 Dec 2015 19:32:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85A0F21C05E for ; Wed, 9 Dec 2015 19:32:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F6B934087F for ; Wed, 9 Dec 2015 19:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 795FBE6C for ; Wed, 9 Dec 2015 19:32:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1449689373.2f84986af360dcf026d0ac84f784246c3e54cc13.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:python-cleanup-r2 commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/python-utils-r1.eclass X-VCS-Directories: eclass/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 2f84986af360dcf026d0ac84f784246c3e54cc13 X-VCS-Branch: python-cleanup-r2 Date: Wed, 9 Dec 2015 19:32:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 77e7f960-07d0-4d6c-97d0-d3ad27becc2c X-Archives-Hash: e17aced4a45b2f947dcb203de3d64f8a commit: 2f84986af360dcf026d0ac84f784246c3e54cc13 Author: Michał Górny gentoo org> AuthorDate: Sun Dec 6 16:02:55 2015 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Dec 9 19:29:33 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f84986a 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. eclass/python-utils-r1.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index 0bce6a9..3ea23a8 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