Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/sysconfig.py @ 51506:8a28d99f784d
Merged revisions 69485 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69485 | tarek.ziade | 2009-02-10 13:31:09 +0100 (Tue, 10 Feb 2009) | 1 line
Fixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib
........
| author | Tarek Ziadé <ziade.tarek@gmail.com> |
|---|---|
| date | Tue, 10 Feb 2009 12:36:33 +0000 |
| parents | 2a40d981c652 |
| children | 198b68ae2c2d |
line wrap: on
line diff
--- a/Lib/distutils/sysconfig.py Tue Feb 10 02:41:10 2009 +0000 +++ b/Lib/distutils/sysconfig.py Tue Feb 10 12:36:33 2009 +0000 @@ -130,7 +130,7 @@ if get_python_version() < "2.2": return prefix else: - return os.path.join(PREFIX, "Lib", "site-packages") + return os.path.join(prefix, "Lib", "site-packages") elif os.name == "mac": if plat_specific: if standard_lib: @@ -144,9 +144,9 @@ return os.path.join(prefix, "Lib", "site-packages") elif os.name == "os2": if standard_lib: - return os.path.join(PREFIX, "Lib") + return os.path.join(prefix, "Lib") else: - return os.path.join(PREFIX, "Lib", "site-packages") + return os.path.join(prefix, "Lib", "site-packages") else: raise DistutilsPlatformError( "I don't know where Python installs its library "
