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')
Attachments
For Gerrit Dashboard: PYSIDE-2102 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
440706,2 | build_system: Correct PYTHON_WITH_DEBUG logic for Windows builds | dev | pyside/pyside-setup | Status: NEW | +1 | 0 |