Skip to content

Commit

Permalink
Attempt for PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed May 27, 2022
1 parent 22911df commit 3e50009
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/_cffi_src/utils.py
Expand Up @@ -75,7 +75,13 @@ def build_ffi(
if platform.python_implementation() == "PyPy":
verify_source += r"""
int Cryptography_make_openssl_module(void) {
return cffi_start_python();
int result;
Py_BEGIN_ALLOW_THREADS
result = cffi_start_python();
Py_END_ALLOW_THREADS
return result;
}
"""
ffi.cdef(cdef_source)
Expand Down

0 comments on commit 3e50009

Please sign in to comment.