Skip to content

Commit 1ef0d5f

Browse files
committed
PyDEBUG builds don't support the limited ABI
Issue: 28401: Don't attempt to import the stable API extensions, they are not supported in PyDEBUG builds (which don't implement that ABI).
1 parent 3e28eed commit 1ef0d5f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Stable ABI extensions will no longer be found by the import machinery on
2+
debug builds of Python. Importing them never worked, anyway.

Python/dynload_shlib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const char *_PyImport_DynLoadFiletab[] = {
3838
".dll",
3939
#else /* !__CYGWIN__ */
4040
"." SOABI ".so",
41+
#ifndef Py_DEBUG
4142
".abi" PYTHON_ABI_STRING ".so",
43+
#endif /* ! Py_DEBUG */
4244
".so",
4345
#endif /* __CYGWIN__ */
4446
NULL,

0 commit comments

Comments
 (0)