Commit 338d54f0 authored by Stefano Rivera's avatar Stefano Rivera Committed by Miss Islington (bot)

bpo-28401: prevent Py_DEBUG builds from trying to import limited ABI modules (GH-1766)



[Issue 28401](https://bugs.python.org/issue28401): Don't attempt to import the stable API extensions, they are not supported in PyDEBUG builds (which don't implement that ABI).


https://bugs.python.org/issue28401
parent ad65f155
Debug builds will no longer to attempt to import extension modules built
for the ABI as they were never compatible to begin with.
Patch by Stefano Rivera.
......@@ -38,7 +38,9 @@ const char *_PyImport_DynLoadFiletab[] = {
".dll",
#else /* !__CYGWIN__ */
"." SOABI ".so",
#ifndef Py_DEBUG
".abi" PYTHON_ABI_STRING ".so",
#endif /* ! Py_DEBUG */
".so",
#endif /* __CYGWIN__ */
NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment