summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2017-03-11 16:09:47 +0100
committerArmin Rigo <arigo@tunes.org>2017-03-11 16:09:47 +0100
commite85f9b6b4c56770ef71617a81b947176c6cc8378 (patch)
tree91f5e0b3b560894b2d8935925c42e5ca9dd25d07
parent13f56d02b7319b37862186422d7f1d4288108932 (diff)
downloadcffi-e85f9b6b4c56770ef71617a81b947176c6cc8378.tar.gz
pypy-c => pypy3-c
-rw-r--r--cffi/api.py5
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