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 0C9561384B4 for ; Sun, 6 Dec 2015 19:04:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D751221C0F3; Sun, 6 Dec 2015 19:03:44 +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 1A90A21C0EE for ; Sun, 6 Dec 2015 19:03:44 +0000 (UTC) Received: from localhost.localdomain (d202-251.icpnet.pl [109.173.202.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 89DB3340691; Sun, 6 Dec 2015 19:03:41 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH 02/13] python-utils-r1.eclass: Reorder implementations to semi-ascending order Date: Sun, 6 Dec 2015 20:03:21 +0100 Message-Id: <1449428612-20538-3-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> References: <1449428612-20538-1-git-send-email-mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: f3db2047-87a4-47ce-a624-7e1391a291c4 X-Archives-Hash: 4a5e2c417cc0aa0f61fadad0e623956c 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 -- 2.6.3