Commits

Brian Kearns committed eb674fd

redo this adjustment for vendor-rename because get_python_version is an exposed api

Comments (0)

Files changed (1)

lib-python/2/distutils/sysconfig_pypy.py

     leaving off the patchlevel.  Sample return values could be '1.5'
     or '2.2'.
     """
-    return sys.version[0]
+    return sys.version[:3]
 
 
 def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
     if prefix is None:
         prefix = PREFIX
     if standard_lib:
-        return os.path.join(prefix, "lib-python", get_python_version())
+        return os.path.join(prefix, "lib-python", sys.version[0])
     return os.path.join(prefix, 'site-packages')