projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954a1cf
)
python-utils-r1.eclass: wrapper, PYTHON_CONFIG is valid only for CPython
author
Michał Górny
<mgorny@gentoo.org>
Wed, 11 Nov 2015 12:20:23 +0000
(13:20 +0100)
committer
Michał Górny
<mgorny@gentoo.org>
Wed, 11 Nov 2015 12:21:21 +0000
(13:21 +0100)
eclass/python-utils-r1.eclass
patch
|
blob
|
history
diff --git
a/eclass/python-utils-r1.eclass
b/eclass/python-utils-r1.eclass
index 33cee1b30a918d810cb37d8412eb6e6e108e0079..b55cc8be1266746947746c3d7745d940a13bf130 100644
(file)
--- 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}" "\${@}"