Allow the python-config executable to be specified in the environment.

This commit is contained in:
Dave Page 2016-06-20 11:19:57 +01:00
parent fc955537a8
commit 2c06ab4ac3

View File

@ -49,8 +49,13 @@ else {
message(Building for Linux/Mac...)
# Find and configure Python
# Environment setting
PYTHON_CONFIG = $$(PYTHON_CONFIG)
# Python 2?
PYTHON_CONFIG = $$system(which python-config)
isEmpty(PYTHON_CONFIG) {
PYTHON_CONFIG = $$system(which python-config)
}
# Maybe Python 3?
isEmpty(PYTHON_CONFIG) {