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
commit19889f5a518376546a7ac70b58d1d969dae5ef08 (patch)
tree8da704a7bd9dbf02445b025aec0d653ab2c1c3e7 /eclass/python-r1.eclass
parentMove header wrapping to multilib-build. Use the new code in autotools-multili... (diff)
downloadhistorical-19889f5a518376546a7ac70b58d1d969dae5ef08.tar.gz
historical-19889f5a518376546a7ac70b58d1d969dae5ef08.tar.bz2
historical-19889f5a518376546a7ac70b58d1d969dae5ef08.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-r1.eclass')
-rw-r--r--eclass/python-r1.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 0b96775373fb..d1cc4206d6af 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-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-r1.eclass,v 1.52 2013/03/30 12:56:24 floppym Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.53 2013/04/07 17:02:52 mgorny Exp $
# @ECLASS: python-r1
# @MAINTAINER:
@@ -637,7 +637,9 @@ _python_multibuild_wrapper() {
debug-print-function ${FUNCNAME} "${@}"
local -x EPYTHON PYTHON
+ local -x PATH=${PATH} PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
python_export "${MULTIBUILD_VARIANT}" EPYTHON PYTHON
+ python_wrapper_setup "${T}/${EPYTHON}"
"${@}"
}
@@ -710,6 +712,7 @@ python_export_best() {
debug-print "${FUNCNAME}: Best implementation is: ${best}"
python_export "${best}" "${@}"
+ python_wrapper_setup "${T}"
}
# @FUNCTION: python_replicate_script