Skip to content
Snippets Groups Projects
Commit 061f8504 authored by Donald Stufft's avatar Donald Stufft
Browse files

Fix the so suffix on PyPy

parent 042b6b2e
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ from __future__ import absolute_import ...@@ -5,6 +5,7 @@ from __future__ import absolute_import
from __future__ import division from __future__ import division
import functools import functools
import platform
from distutils.sysconfig import get_config_vars from distutils.sysconfig import get_config_vars
...@@ -21,7 +22,8 @@ __all__ = ["ffi", "lib"] ...@@ -21,7 +22,8 @@ __all__ = ["ffi", "lib"]
def _get_so_suffix(): def _get_so_suffix():
return get_config_vars().get("EXT_SUFFIX", ".so") return get_config_vars().get("EXT_SUFFIX", ".so")
cffi.verifier._get_so_suffix = _get_so_suffix if not platform.python_implementation().lower() == "pypy":
cffi.verifier._get_so_suffix = _get_so_suffix
ffi = FFI() ffi = FFI()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment