python-utils-r1.eclass: python_wrapper_setup, do not query PYTHON_CONFIG
authorMichał Górny <mgorny@gentoo.org>
Fri, 21 Apr 2017 14:03:23 +0000 (16:03 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 25 Apr 2017 17:57:56 +0000 (19:57 +0200)
commit6a5909861804d1c32cf5b850c4b143c02009f661
tree06e6066159b508fd0c968a9eeb8a4d8fa68c7135
parentd908a037fd17275f0a19ffe487f15959c0c40a5d
python-utils-r1.eclass: python_wrapper_setup, do not query PYTHON_CONFIG

Use plain 'pythonX.Y-config' executable name in the python-config
wrapper instead of querying the complete PYTHON_CONFIG path from
python_export.

Constructing full PYTHON_CONFIG path requires querying ABIFLAGS which
requires the Python interpreter to be installed, which in turn
unnecessarily forces every ebuild using the eclass to carry a build-time
dependency on the Python interpreter.

All current versions of Python correctly install 'pythonX.Y-config'
symlink that points to the correct ABI-suffixed binary. It is therefore
unnecessary to use the full path.
eclass/python-utils-r1.eclass