Explorar o código

Don't depend on pandatool for the runtime

rdb %!s(int64=16) %!d(string=hai) anos
pai
achega
e669fa07f3
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      makepanda/makepanda.py

+ 3 - 2
makepanda/makepanda.py

@@ -1534,8 +1534,9 @@ if (sys.platform.startswith("win")):
 
 
 CopyFile(GetOutputDir()+"/", "doc/LICENSE")
 CopyFile(GetOutputDir()+"/", "doc/LICENSE")
 CopyFile(GetOutputDir()+"/", "doc/ReleaseNotes")
 CopyFile(GetOutputDir()+"/", "doc/ReleaseNotes")
-CopyAllFiles(GetOutputDir()+"/plugins/",  "pandatool/src/scripts/", ".mel")
-CopyAllFiles(GetOutputDir()+"/plugins/",  "pandatool/src/scripts/", ".ms")
+if (PkgSkip("PANDATOOL")==0):
+    CopyAllFiles(GetOutputDir()+"/plugins/",  "pandatool/src/scripts/", ".mel")
+    CopyAllFiles(GetOutputDir()+"/plugins/",  "pandatool/src/scripts/", ".ms")
 if (PkgSkip("PYTHON")==0 and os.path.isdir("thirdparty/Pmw")):
 if (PkgSkip("PYTHON")==0 and os.path.isdir("thirdparty/Pmw")):
     CopyTree(GetOutputDir()+'/Pmw',         'thirdparty/Pmw')
     CopyTree(GetOutputDir()+'/Pmw',         'thirdparty/Pmw')
 ConditionalWriteFile(GetOutputDir()+'/include/ctl3d.h', '/* dummy file to make MAX happy */')
 ConditionalWriteFile(GetOutputDir()+'/include/ctl3d.h', '/* dummy file to make MAX happy */')