Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2102

PYTHON_WITH_DEBUG unreliable for Windows Debug Python builds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4.0
    • Build System
    • None
    • Windows

    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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            kkyzivat Keith Kyzivat
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: