[pypy-commit] cffi default: pypy-c => pypy3-c

arigo pypy.commits at gmail.com
Sat Mar 11 10:09:56 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r2903:4720f43ec0e0
Date: 2017-03-11 16:09 +0100
http://bitbucket.org/cffi/cffi/changeset/4720f43ec0e0/

Log:	pypy-c => pypy3-c

diff --git a/cffi/api.py b/cffi/api.py
--- a/cffi/api.py
+++ b/cffi/api.py
@@ -570,7 +570,10 @@
                 # we need 'libpypy-c.{so,dylib}', which should be by
                 # default located in 'sys.prefix/bin' for installed
                 # systems.
-                pythonlib = "pypy-c"
+                if sys.version_info < (3,):
+                    pythonlib = "pypy-c"
+                else:
+                    pythonlib = "pypy3-c"
                 if hasattr(sys, 'prefix'):
                     ensure('library_dirs', os.path.join(sys.prefix, 'bin'))
             # On uninstalled pypy's, the libpypy-c is typically found in


More information about the pypy-commit mailing list