Browse Source

makepackage: allow Homebrew Python to find Panda3D libraries

rdb 6 years ago
parent
commit
4ceb494127
1 changed files with 5 additions and 0 deletions
  1. 5 0
      makepanda/makepackage.py

+ 5 - 0
makepanda/makepackage.py

@@ -569,6 +569,11 @@ def MakeInstallerOSX(version, runtime=False, python_versions=[], **kwargs):
             oscmd("mkdir -p %s" % (dir))
             WriteFile("%s/Panda3D.pth" % (dir), "/Developer/Panda3D")
 
+        # Also place it somewhere the Homebrew version of Python can find it.
+        dir = "dstroot/pybindings%s/usr/local/lib/python%s/site-packages" % (pyver, pyver)
+        oscmd("mkdir -p %s" % (dir))
+        WriteFile("%s/Panda3D.pth" % (dir), "/Developer/Panda3D")
+
     if not PkgSkip("FFMPEG"):
         oscmd("mkdir -p dstroot/ffmpeg/Developer/Panda3D/lib")
         oscmd("cp -R %s/lib/libp3ffmpeg.* dstroot/ffmpeg/Developer/Panda3D/lib/" % outputdir)