summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-08 09:30:37 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-11 11:21:41 +0100
commite7536eccab56e11daaf6d01c3a7ae80143160a9a (patch)
tree575c6135719c79f699f8cd4c7fd715a1b74445b1 /eclass
parentpython-utils-r1.eclass: Support getting PYTHON_CONFIG path (diff)
downloadgentoo-e7536eccab56e11daaf6d01c3a7ae80143160a9a.tar.gz
gentoo-e7536eccab56e11daaf6d01c3a7ae80143160a9a.tar.bz2
gentoo-e7536eccab56e11daaf6d01c3a7ae80143160a9a.zip
python-utils-r1.eclass: Reuse PYTHON_CONFIG in python_wrapper_setup()
Diffstat (limited to 'eclass')
-rw-r--r--eclass/python-utils-r1.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 68926abe9da7..33cee1b30a91 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -877,8 +877,8 @@ python_wrapper_setup() {
rm -f "${workdir}"/bin/2to3 || die
rm -f "${workdir}"/pkgconfig/python{,2,3}.pc || die
- local EPYTHON PYTHON
- python_export "${impl}" EPYTHON PYTHON
+ local EPYTHON PYTHON PYTHON_CONFIG
+ python_export "${impl}" EPYTHON PYTHON PYTHON_CONFIG
local pyver pyother
if python_is_python3; then
@@ -906,7 +906,7 @@ python_wrapper_setup() {
if [[ ${EPYTHON} == python* ]]; then
cat > "${workdir}/bin/python-config" <<-_EOF_
#!/bin/sh
- exec "${PYTHON}-config" "\${@}"
+ exec "${PYTHON_CONFIG}" "\${@}"
_EOF_
cp "${workdir}/bin/python-config" \
"${workdir}/bin/python${pyver}-config" || die