From 2c06ab4ac3be1526574609ee4a31d23de3f4380b Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 20 Jun 2016 11:19:57 +0100 Subject: [PATCH] Allow the python-config executable to be specified in the environment. --- runtime/pgAdmin4.pro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/pgAdmin4.pro b/runtime/pgAdmin4.pro index 0bd0f6078..065991ed2 100644 --- a/runtime/pgAdmin4.pro +++ b/runtime/pgAdmin4.pro @@ -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) {