Details
-
Bug
-
Resolution: Incomplete
-
P3: Somewhat important
-
None
-
6.4.0
-
None
Description
Under Windows, python debug builds cannot be identified by querying for config var Py_DEBUG, as the pyconfig.h header is static on windows (no autoconf), and debug/no-debug is determined using the preprocessor at build time.
According to this, the most reliable way to determine if a Windows Python build is debug is:
'_d.pyd' in importlib.machinery.EXTENSION_SUFFIXES
sources/shiboken6/cmake/ShibokenSetup.cmake:124:
config_py_debug = sysconfig.get_config_var('Py_DEBUG')