This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2019-04-25.19:00:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556218847.85.0.311466244133.issue36722@roundup.psfhosted.org>
In-reply-to
Content
bpo-36465 modified the ABI of debug build so release and debug build now have the same ABI.

bpo-21536 modified how C extensions are built: they are no longer linked to libpython.

In a debug build, it becomes possible to load a C extension built in release mode:
https://bugs.python.org/issue21536#msg340821

But I had to modify SOABI for that.

I propose to modify how Python looks for C extensions: look also for dynamic libraries without the "d" SOABI flag and for C extensions built using the stable ABI.

Release build:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38-x86_64-linux-gnu.so', '.abi3.so', '.so']

Debug build, *WITHOUT* my change:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38d-x86_64-linux-gnu.so', '.so']

Debug build, *WITH* my change:

$ ./python -c 'import _imp; print(_imp.extension_suffixes())'
['.cpython-38d-x86_64-linux-gnu.so', '.cpython-38-x86_64-linux-gnu.so', '.abi3.so', '.so']
History
Date User Action Args
2019-04-25 19:00:47vstinnersetrecipients: + vstinner
2019-04-25 19:00:47vstinnersetmessageid: <1556218847.85.0.311466244133.issue36722@roundup.psfhosted.org>
2019-04-25 19:00:47vstinnerlinkissue36722 messages
2019-04-25 19:00:47vstinnercreate