summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2001-08-23 20:53:27 (GMT)
committerGreg Ward <gward@python.net>2001-08-23 20:53:27 (GMT)
commitf17efb93d95562071b6069e44b723873ffba05f4 (patch)
tree6a36d1e1eec193cf00545c4dffc09226f6adf9be /Lib/distutils/sysconfig.py
parent971e0690c4ae81da3d86df82c2aef5872beb3ca3 (diff)
downloadcpython-f17efb93d95562071b6069e44b723873ffba05f4.zip
cpython-f17efb93d95562071b6069e44b723873ffba05f4.tar.gz
cpython-f17efb93d95562071b6069e44b723873ffba05f4.tar.bz2
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.
Diffstat (limited to 'Lib/distutils/sysconfig.py')
-rw-r--r--Lib/distutils/sysconfig.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 1f0d145..558ff29 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -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: