[pypy-svn] r75195 - pypy/trunk/lib-python/modified-2.5.2/distutils/command

afa at codespeak.net afa at codespeak.net
Tue Jun 8 16:04:03 CEST 2010


Author: afa
Date: Tue Jun  8 16:04:01 2010
New Revision: 75195

Modified:
   pypy/trunk/lib-python/modified-2.5.2/distutils/command/build_ext.py
Log:
Revert part of the change, and use the same name as CPython for the import library


Modified: pypy/trunk/lib-python/modified-2.5.2/distutils/command/build_ext.py
==============================================================================
--- pypy/trunk/lib-python/modified-2.5.2/distutils/command/build_ext.py	(original)
+++ pypy/trunk/lib-python/modified-2.5.2/distutils/command/build_ext.py	Tue Jun  8 16:04:01 2010
@@ -647,7 +647,9 @@
         """
         # The python library is always needed on Windows.
         if sys.platform == "win32":
-            pythonlib = 'libpypy-c.exe'
+            template = "python%d%d"
+            pythonlib = (template %
+                         (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
             # don't extend ext.libraries, it may be shared with other
             # extensions, it is a reference to the original list
             return ext.libraries + [pythonlib]



More information about the Pypy-commit mailing list