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

This commit is contained in:
Jonas Thiem 2015-02-07 22:37:40 +01:00
parent c11c46a6b1
commit 76ca80dcd5
2 changed files with 5 additions and 4 deletions

View File

@ -17,6 +17,11 @@ from distutils.sysconfig import get_python_lib
from optparse import OptionParser from optparse import OptionParser
from makepandacore import * 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 = ( MIME_INFO = (
("egg", "model/x-egg", "EGG model file", "pview"), ("egg", "model/x-egg", "EGG model file", "pview"),
("bam", "model/x-bam", "Panda3D binary model file", "pview"), ("bam", "model/x-bam", "Panda3D binary model file", "pview"),

View File

@ -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, # We're not putting "python" in the "Requires" field,
# since the rpm-based distros don't have a common # since the rpm-based distros don't have a common