Browse Source

deploy-ng: Add panda3d.dist-info to installers

Mitchell Stokes 7 years ago
parent
commit
cb077fcdae
2 changed files with 4 additions and 0 deletions
  1. 2 0
      makepanda/installer.nsi
  2. 2 0
      makepanda/installpanda.py

+ 2 - 0
makepanda/installer.nsi

@@ -367,6 +367,8 @@ SectionGroup "Python support"
         File /r "${BUILT}\pandac\input\*"
         SetOutPath $INSTDIR\Pmw
         File /r /x CVS "${BUILT}\Pmw\*"
+        SetOutPath $INSTDIR\panda3d.dist-info
+        File /nonfatal /r "${BUILT}\panda3d.dist-info\*"
 
         !ifdef REGVIEW
         SetRegView ${REGVIEW}

+ 2 - 0
makepanda/installpanda.py

@@ -211,6 +211,8 @@ def InstallPanda(destdir="", prefix="/usr", outputdir="built", libdir=GetLibDir(
     oscmd("cp doc/ReleaseNotes                  "+destdir+prefix+"/share/panda3d/ReleaseNotes")
     oscmd("echo '"+prefix+"/share/panda3d' >    "+destdir+PPATH+"/panda3d.pth")
     oscmd("echo '"+libdir+"/panda3d'>>   "+destdir+PPATH+"/panda3d.pth")
+    if os.path.isdir(outputdir+"/panda3d.dist-info"):
+        oscmd("cp -R "+outputdir+"/panda3d.dist-info "+destdir+PPATH)
     if (sys.platform.startswith("freebsd")):
         oscmd("echo '"+libdir+"/panda3d'>    "+destdir+"/usr/local/libdata/ldconfig/panda3d")
     else: