Patch #449054 to implement PEP 250. The standard install directory for

modules and extensions on Windows is now $PREFIX/Lib/site-packages.
Includes backwards compatibility code for pre-2.2 Pythons.  Contributed
by Paul Moore.
This commit is contained in:
Greg Ward 2001-08-23 20:53:27 +00:00
parent 971e0690c4
commit f17efb93d9
2 changed files with 22 additions and 8 deletions

View file

@ -94,7 +94,10 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
if standard_lib:
return os.path.join(prefix, "Lib")
else:
return prefix
if sys.version < "2.2":
return prefix
else:
return os.path.join(PREFIX, "Lib", "site-packages")
elif os.name == "mac":
if plat_specific: