Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: python.eclass
Date: Mon, 04 Jul 2011 11:28:03
Message-Id: 20110704112753.E3F7F2004B@flycatcher.gentoo.org
1 djc 11/07/04 11:27:53
2
3 Modified: python.eclass
4 Log:
5 Support PYTHON_TESTS_RESTRICTED_ABIS.
6 (Patch by Arfrever. Backported from python overlay.)
7
8 Revision Changes Path
9 1.116 eclass/python.eclass
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?rev=1.116&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?rev=1.116&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/python.eclass?r1=1.115&r2=1.116
14
15 Index: python.eclass
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/eclass/python.eclass,v
18 retrieving revision 1.115
19 retrieving revision 1.116
20 diff -u -r1.115 -r1.116
21 --- python.eclass 4 Jul 2011 11:27:29 -0000 1.115
22 +++ python.eclass 4 Jul 2011 11:27:53 -0000 1.116
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2011 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.115 2011/07/04 11:27:29 djc Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.116 2011/07/04 11:27:53 djc Exp $
28
29 # @ECLASS: python.eclass
30 # @MAINTAINER:
31 @@ -622,6 +622,11 @@
32 # Set this in EAPI <= 4 to indicate that current package supports installation for
33 # multiple Python ABIs.
34
35 +# @ECLASS-VARIABLE: PYTHON_TESTS_RESTRICTED_ABIS
36 +# @DESCRIPTION:
37 +# Space-separated list of Python ABI patterns. Testing in Python ABIs matching any Python ABI
38 +# patterns specified in this list is skipped.
39 +
40 # @ECLASS-VARIABLE: PYTHON_EXPORT_PHASE_FUNCTIONS
41 # @DESCRIPTION:
42 # Set this to export phase functions for the following ebuild phases:
43 @@ -1010,6 +1015,13 @@
44 iterated_PYTHON_ABIS="${PYTHON_ABIS}"
45 fi
46 for PYTHON_ABI in ${iterated_PYTHON_ABIS}; do
47 + if [[ "${EBUILD_PHASE}" == "test" ]] && _python_check_python_abi_matching --patterns-list "${PYTHON_ABI}" "${PYTHON_TESTS_RESTRICTED_ABIS}"; then
48 + if [[ "${quiet}" == "0" ]]; then
49 + echo " ${_GREEN}*${_NORMAL} ${_BLUE}Testing of ${CATEGORY}/${PF} with $(python_get_implementation) $(python_get_version) skipped${_NORMAL}"
50 + fi
51 + continue
52 + fi
53 +
54 _python_prepare_flags
55
56 if [[ "${quiet}" == "0" ]]; then