diff options
author | Greg Ward <gward@python.net> | 2001-08-23 20:53:27 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2001-08-23 20:53:27 (GMT) |
commit | f17efb93d95562071b6069e44b723873ffba05f4 (patch) | |
tree | 6a36d1e1eec193cf00545c4dffc09226f6adf9be /Lib/distutils/sysconfig.py | |
parent | 971e0690c4ae81da3d86df82c2aef5872beb3ca3 (diff) | |
download | cpython-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.py | 5 |
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: |