Browse Source

Moving over PYTHON_SITEPACKAGES definition from makepanda.py to installpanda.py

Jonas Thiem 11 years ago
parent
commit
76ca80dcd5
2 changed files with 5 additions and 4 deletions
  1. 5 0
      makepanda/installpanda.py
  2. 0 4
      makepanda/makepanda.py

+ 5 - 0
makepanda/installpanda.py

@@ -17,6 +17,11 @@ from distutils.sysconfig import get_python_lib
 from optparse import OptionParser
 from makepandacore import *
 
+def python_sitepackages_path():
+    from distutils.sysconfig import get_python_lib
+    return get_python_lib(1)
+PYTHON_SITEPACKAGES=python_sitepackages_path()
+
 MIME_INFO = (
   ("egg", "model/x-egg", "EGG model file", "pview"),
   ("bam", "model/x-bam", "Panda3D binary model file", "pview"),

+ 0 - 4
makepanda/makepanda.py

@@ -6184,10 +6184,6 @@ Description: Runtime binary and browser plugin for the Panda3D Game Engine
 
 """
 
-def python_sitepackages_path():
-    from distutils.sysconfig import get_python_lib
-    return get_python_lib(1)
-PYTHON_SITEPACKAGES=python_sitepackages_path()
 
 # We're not putting "python" in the "Requires" field,
 # since the rpm-based distros don't have a common