From 061f8504b726ac496479d68da0cdf10eb6b1c806 Mon Sep 17 00:00:00 2001
From: Donald Stufft <donald@stufft.io>
Date: Sat, 5 Oct 2013 17:08:20 -0400
Subject: [PATCH] Fix the so suffix on PyPy

---
 nacl/nacl.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/nacl/nacl.py b/nacl/nacl.py
index 0f221614..2663a002 100644
--- a/nacl/nacl.py
+++ b/nacl/nacl.py
@@ -5,6 +5,7 @@ from __future__ import absolute_import
 from __future__ import division
 
 import functools
+import platform
 
 from distutils.sysconfig import get_config_vars
 
@@ -21,7 +22,8 @@ __all__ = ["ffi", "lib"]
 def _get_so_suffix():
     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()
-- 
GitLab