summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-01-01 05:02:27 +0000
committerMike Gilbert <floppym@gentoo.org>2012-01-01 05:02:27 +0000
commit7d961d049b5e93312ea5907d9d11689cc043da22 (patch)
tree212dd9cc7cc94bda77dd9c07155bb190608ce5ab /eclass/distutils.eclass
parentVersion bump. (diff)
downloadgentoo-2-7d961d049b5e93312ea5907d9d11689cc043da22.tar.gz
gentoo-2-7d961d049b5e93312ea5907d9d11689cc043da22.tar.bz2
gentoo-2-7d961d049b5e93312ea5907d9d11689cc043da22.zip
Avoid including python.eclass more than once.
Diffstat (limited to 'eclass/distutils.eclass')
-rw-r--r--eclass/distutils.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/distutils.eclass b/eclass/distutils.eclass
index cc6130aa901d..2b4e1c21ff62 100644
--- a/eclass/distutils.eclass
+++ b/eclass/distutils.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.80 2011/04/12 18:49:03 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils.eclass,v 1.81 2012/01/01 05:02:27 floppym Exp $
# @ECLASS: distutils.eclass
# @MAINTAINER:
@@ -9,7 +9,11 @@
# @DESCRIPTION:
# The distutils eclass defines phase functions for packages with build systems using Distutils.
-inherit multilib python
+if [[ -z "${_PYTHON_ECLASS_INHERITED}" ]]; then
+ inherit python
+fi
+
+inherit multilib
case "${EAPI:-0}" in
0|1)