From 7fa373bd6a1892cbce58322ae053b1a3b1c322f6 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 16 Sep 2019 21:07:13 +0200 Subject: [PATCH] makepanda: fix custom --python-incdir and --python-libdir on macOS --- makepanda/makepandacore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 932210f9c7..7040d34851 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -2159,7 +2159,7 @@ def SdkLocatePython(prefer_thirdparty_python=False): SDK["PYTHONEXEC"] = tp_python + "/bin/" + SDK["PYTHONVERSION"] SDK["PYTHON"] = tp_python + "/include/" + SDK["PYTHONVERSION"] - elif GetTarget() == 'darwin': + elif GetTarget() == 'darwin' and not PkgHasCustomLocation("PYTHON"): # On macOS, search for the Python framework directory matching the # version number of our current Python version. sysroot = SDK.get("MACOSX", "")