Ned Deily <n...@python.org> added the comment:

Thanks for the clarification. On most platforms other than Windows, Python 
expects compiled extension modules (usually written in C or C++) to have an 
extension of .so. This is true as well on macOS. Typically, extension modules 
are compiled using Python's Distutils, or one of its newer derivatives, which 
takes care of creating the proper extension module file name. If you are 
building an extension module with something else, you'll need to ensure that 
the shared library file name has the expected format. Note that PEP 3149, 
implemented in Python 3.2, extends the filename extension to include the Python 
version (although unversioned .so file names are still accepted for 
compatibility); see 
https://docs.python.org/3/whatsnew/3.2.html#pep-3149-abi-version-tagged-so-files
 for more information.

$ python3 -c 'import sysconfig;print(sysconfig.get_config_var("EXT_SUFFIX"))'
.cpython-39-darwin.so

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43898>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to