You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we have unsafe code, and for a lack of a better option we assume it made into C macros, so extensions that use the C API should use -fwrapv.
what else? please comment...
"definition" sections list the answer, if a question, or the value(s) of the item. "currently" sections list the current way of fetching the information.
This is list is a work in progress. Currently, we need to gather all the information that is required to build extensions. If you see anything that's missing, please comment!
Feature or enhancement
sysconfigshould export all the information required to build extensions.Pitch
The new API should try to expose the information in a compiler-agnostic way.
Information to expose
sys.version_infosys.implementationpackaging.tags's implementation)importlib.machinery.EXTENSION_SUFFIXES,sysconfig.get_config_var('EXT_SUFFIX'),sysconfig.get_config_var('SHLIB_SUFFIX')libpythonavailable? What's its name? Location?--enable-sharedbool(sysconfig.get_config_var('LDLIBRARY'))sysconfig.get_config_var('LDLIBRARY')sysconfig.get_config_var('LIBDIR')libpythonavailable? What's its name? Location?--without-static-libpythonbool(sysconfig.get_config_var('LIBRARY'))sysconfig.get_config_var('LIBRARY')sysconfig.get_config_var('LIBDIR')libpython?bool(sysconfig.get_config_var('LIBPYTHON'))--with-pydebugbool(sysconfig.get_config_var('Py_DEBUG'))-fwrapv(until Enable-fstrict-overflow#96821)-fwrapv."definition" sections list the answer, if a question, or the value(s) of the item. "currently" sections list the current way of fetching the information.
This is list is a work in progress. Currently, we need to gather all the information that is required to build extensions. If you see anything that's missing, please comment!
Previous discussion
https://discuss.python.org/t/building-extensions-modules-in-a-post-distutils-world/23938
https://discuss.python.org/t/what-information-is-useful-to-know-statically-about-an-interpreter/25563
https://gregoryszorc.com/docs/python-build-standalone/20230116/distributions.html
New
sysconfigAPI meta-issue: GH-103480