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

pull/3/head
Dave Page 2016-06-20 11:19:57 +01:00
parent fc955537a8
commit 2c06ab4ac3
1 changed files with 6 additions and 1 deletions

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) {