Commits

Armin Rigo committed a8bdd46

Fix when running on pypy without cpyext.

  • Participants
  • Parent commits 84304e9

Comments (0)

Files changed (1)

     for suffix, mode, type in imp.get_suffixes():
         if type == imp.C_EXTENSION:
             return suffix
-    raise ffiplatform.VerificationError("no C_EXTENSION available")
+    # bah, no C_EXTENSION available.  Occurs on pypy without cpyext
+    if sys.platform == 'win32':
+        return ".pyd"
+    else:
+        return ".so"
 
 def _ensure_dir(filename):
     try: