summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-04-07 17:02:52 +0000
committerMichał Górny <mgorny@gentoo.org>2013-04-07 17:02:52 +0000
commit37341bff446f8754b125cb0a8dd640d660aed4a8 (patch)
tree5dbccae4832627d6da3fcebaec6bd70e2b9cce81 /eclass/python-any-r1.eclass
parentMove header wrapping to multilib-build. Use the new code in autotools-multili... (diff)
downloadgentoo-2-37341bff446f8754b125cb0a8dd640d660aed4a8.tar.gz
gentoo-2-37341bff446f8754b125cb0a8dd640d660aed4a8.tar.bz2
gentoo-2-37341bff446f8754b125cb0a8dd640d660aed4a8.zip
Create temporary symlinks for executables and pkg-config files, and add them to $PATH and $PKG_CONFIG_PATH respectively. This makes it easier for broken build systems to find Python, and gives us the possibility of dropping python-wrapper.
Diffstat (limited to 'eclass/python-any-r1.eclass')
-rw-r--r--eclass/python-any-r1.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index 5d9a3d1e5955..dc3443b75f00 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-any-r1.eclass,v 1.6 2013/01/21 19:28:16 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-any-r1.eclass,v 1.7 2013/04/07 17:02:52 mgorny Exp $
# @ECLASS: python-any-r1
# @MAINTAINER:
@@ -205,7 +205,10 @@ python-any-r1_pkg_setup() {
local PYTHON_PKG_DEP
for i in "${rev_impls[@]}"; do
python_export "${i}" PYTHON_PKG_DEP EPYTHON PYTHON
- ROOT=/ has_version "${PYTHON_PKG_DEP}" && return
+ if ROOT=/ has_version "${PYTHON_PKG_DEP}"; then
+ python_wrapper_setup "${T}"
+ return
+ fi
done
}