python-utils-r1.eclass: Reuse PYTHON_CONFIG in python_wrapper_setup()
authorMichał Górny <mgorny@gentoo.org>
Sun, 8 Nov 2015 08:30:37 +0000 (09:30 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 11 Nov 2015 10:21:41 +0000 (11:21 +0100)
eclass/python-utils-r1.eclass

index 68926abe9da7d1ae110138824c327b9414db109e..33cee1b30a918d810cb37d8412eb6e6e108e0079 100644 (file)
@@ -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