[pypy-commit] cffi default: pypy on windows now stores "python27.lib" in a directory "libs"

arigo pypy.commits at gmail.com
Mon Feb 15 04:31:20 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2638:2711f96bf410
Date: 2016-02-15 10:30 +0100
http://bitbucket.org/cffi/cffi/changeset/2711f96bf410/

Log:	pypy on windows now stores "python27.lib" in a directory "libs"

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -551,13 +551,11 @@
         #
         if '__pypy__' in sys.builtin_module_names:
             if sys.platform == "win32":
-                # we need 'libpypy-c.lib'.  Right now, distributions of
-                # pypy contain it as 'include/python27.lib'.  You need
-                # to manually copy it back to 'libpypy-c.lib'.  XXX Will
-                # be fixed in the next pypy release.
-                pythonlib = "libpypy-c"
+                # we need 'libpypy-c.lib'.  Current distributions of
+                # pypy (>= 4.1) contain it as 'libs/python27.lib'.
+                pythonlib = "python27"
                 if hasattr(sys, 'prefix'):
-                    ensure('library_dirs', sys.prefix)
+                    ensure('library_dirs', os.path.join(sys.prefix, 'libs'))
             else:
                 # we need 'libpypy-c.{so,dylib}', which should be by
                 # default located in 'sys.prefix/bin'


More information about the pypy-commit mailing list