mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
makepanda: fix custom --python-incdir and --python-libdir on macOS
This commit is contained in:
parent
f4926bff20
commit
7fa373bd6a
@ -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", "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user