Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r55566:04ea518e5b71
Date: 2012-06-11 10:28 +0200
http://bitbucket.org/pypy/pypy/changeset/04ea518e5b71/

Log:    issue1164: get_python_lib(standard_lib=1) should probably just
        return the 'lib-python/2.7' directory now, which makes a little bit
        more sense now that we don't have 'modified-2.7' any more.

diff --git a/lib-python/2.7/distutils/sysconfig_pypy.py 
b/lib-python/2.7/distutils/sysconfig_pypy.py
--- a/lib-python/2.7/distutils/sysconfig_pypy.py
+++ b/lib-python/2.7/distutils/sysconfig_pypy.py
@@ -39,11 +39,10 @@
     If 'prefix' is supplied, use it instead of sys.prefix or
     sys.exec_prefix -- i.e., ignore 'plat_specific'.
     """
-    if standard_lib:
-        raise DistutilsPlatformError(
-            "calls to get_python_lib(standard_lib=1) cannot succeed")
     if prefix is None:
         prefix = PREFIX
+    if standard_lib:
+        return os.path.join(prefix, "lib-python", get_python_version())
     return os.path.join(prefix, 'site-packages')
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to