1. Pypy
  2. Untitled project
  3. pypy


Brian Kearns  committed eb674fd

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

  • Participants
  • Parent commits f90828f
  • Branches default

Comments (0)

Files changed (1)

File lib-python/2/distutils/sysconfig_pypy.py

View file
     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')