commit: 59e7fab60e0068ebb4f10d376c7e16ff4ab0c195
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 11 12:20:23 2015 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 11 12:21:21 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59e7fab6
python-utils-r1.eclass: wrapper, PYTHON_CONFIG is valid only for CPython
eclass/python-utils-r1.eclass | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 33cee1b..b55cc8b 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -878,7 +878,7 @@ python_wrapper_setup() {
rm -f "${workdir}"/pkgconfig/python{,2,3}.pc || die
local EPYTHON PYTHON PYTHON_CONFIG
- python_export "${impl}" EPYTHON PYTHON PYTHON_CONFIG
+ python_export "${impl}" EPYTHON PYTHON
local pyver pyother
if python_is_python3; then
@@ -904,6 +904,8 @@ python_wrapper_setup() {
# CPython-specific
if [[ ${EPYTHON} == python* ]]; then
+ python_export "${impl}" PYTHON_CONFIG
+
cat > "${workdir}/bin/python-config" <<-_EOF_
#!/bin/sh
exec "${PYTHON_CONFIG}" "\${@}"