summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2011-07-04 11:27:53 +0000
committerDirkjan Ochtman <djc@gentoo.org>2011-07-04 11:27:53 +0000
commitd8125ba1bac2d5645ecdb4c23ac1eadfe1869db2 (patch)
treee64b8a424324fe4ae8bd325d12664ef4e6a1477b /eclass
parentFix security problem, bug #372983 by Tim Sammut. Remove old. (diff)
downloadgentoo-2-d8125ba1bac2d5645ecdb4c23ac1eadfe1869db2.tar.gz
gentoo-2-d8125ba1bac2d5645ecdb4c23ac1eadfe1869db2.tar.bz2
gentoo-2-d8125ba1bac2d5645ecdb4c23ac1eadfe1869db2.zip
Support PYTHON_TESTS_RESTRICTED_ABIS.
(Patch by Arfrever. Backported from python overlay.)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python.eclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index 7a8157db8570..8af95da86528 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.115 2011/07/04 11:27:29 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.116 2011/07/04 11:27:53 djc Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -622,6 +622,11 @@ python_clean_installation_image() {
# Set this in EAPI <= 4 to indicate that current package supports installation for
# multiple Python ABIs.
+# @ECLASS-VARIABLE: PYTHON_TESTS_RESTRICTED_ABIS
+# @DESCRIPTION:
+# Space-separated list of Python ABI patterns. Testing in Python ABIs matching any Python ABI
+# patterns specified in this list is skipped.
+
# @ECLASS-VARIABLE: PYTHON_EXPORT_PHASE_FUNCTIONS
# @DESCRIPTION:
# Set this to export phase functions for the following ebuild phases:
@@ -1010,6 +1015,13 @@ python_execute_function() {
iterated_PYTHON_ABIS="${PYTHON_ABIS}"
fi
for PYTHON_ABI in ${iterated_PYTHON_ABIS}; do
+ if [[ "${EBUILD_PHASE}" == "test" ]] && _python_check_python_abi_matching --patterns-list "${PYTHON_ABI}" "${PYTHON_TESTS_RESTRICTED_ABIS}"; then
+ if [[ "${quiet}" == "0" ]]; then
+ echo " ${_GREEN}*${_NORMAL} ${_BLUE}Testing of ${CATEGORY}/${PF} with $(python_get_implementation) $(python_get_version) skipped${_NORMAL}"
+ fi
+ continue
+ fi
+
_python_prepare_flags
if [[ "${quiet}" == "0" ]]; then