summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-11 13:20:23 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-11 13:21:21 +0100
commit59e7fab60e0068ebb4f10d376c7e16ff4ab0c195 (patch)
tree1b2b34390b5d089e35c234b368c64e3263f6f2d4 /eclass/python-utils-r1.eclass
parentvirtualbox packages: Removed old. (diff)
downloadgentoo-59e7fab60e0068ebb4f10d376c7e16ff4ab0c195.tar.gz
gentoo-59e7fab60e0068ebb4f10d376c7e16ff4ab0c195.tar.bz2
gentoo-59e7fab60e0068ebb4f10d376c7e16ff4ab0c195.zip
python-utils-r1.eclass: wrapper, PYTHON_CONFIG is valid only for CPython
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 33cee1b30a91..b55cc8be1266 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}" "\${@}"