diff options
author | Armin Rigo <arigo@tunes.org> | 2017-03-11 16:09:47 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2017-03-11 16:09:47 +0100 |
commit | e85f9b6b4c56770ef71617a81b947176c6cc8378 (patch) | |
tree | 91f5e0b3b560894b2d8935925c42e5ca9dd25d07 /cffi/api.py | |
parent | 13f56d02b7319b37862186422d7f1d4288108932 (diff) | |
download | cffi-e85f9b6b4c56770ef71617a81b947176c6cc8378.tar.gz |
pypy-c => pypy3-c
Diffstat (limited to 'cffi/api.py')
-rw-r--r-- | cffi/api.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cffi/api.py b/cffi/api.py index 6250f20..502b376 100644 --- a/cffi/api.py +++ b/cffi/api.py @@ -570,7 +570,10 @@ class FFI(object): # 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 |