From 52ffad2375b999aaa9b04ec67e64ba05ec6755d1 Mon Sep 17 00:00:00 2001 From: Donald Stufft <donald@stufft.io> Date: Sun, 6 Oct 2013 15:36:59 -0400 Subject: [PATCH] Stop monkeypatching the _get_so_suffixes --- src/nacl/nacl.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/nacl/nacl.py b/src/nacl/nacl.py index 16991d32..265b6615 100644 --- a/src/nacl/nacl.py +++ b/src/nacl/nacl.py @@ -18,9 +18,6 @@ from __future__ import absolute_import from __future__ import division import functools -import platform - -from distutils.sysconfig import get_config_vars import cffi.verifier @@ -30,15 +27,6 @@ from cffi import FFI __all__ = ["ffi", "lib"] -# Monkeypatch cffi.verifier._get_so_suffix to return the same as distutils -# See: https://bitbucket.org/cffi/cffi/issue/110/ -def _get_so_suffix(): - return get_config_vars().get("EXT_SUFFIX", ".so") - -if not platform.python_implementation().lower() == "pypy": - cffi.verifier._get_so_suffix = _get_so_suffix - - ffi = FFI() ffi.cdef( # Secret Key Encryption -- GitLab