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

Cmake build broken in 6.3.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.3.0
    • Build System
    • None
    • Linux/X11
    • 703d975f16 (pyside/pyside-setup/dev) 4ae3d8f7dc (pyside/pyside-setup/6.3) 4ae3d8f7dc (pyside/tqtc-pyside-setup/6.3) 703d975f16 (pyside/tqtc-pyside-setup/dev), a27a9bf41 (dev), 3d9e42f33 (6.8), f0f720540 (tqtc/6.8.0), c83e15fe6 (6.8.0), 07ee31548 (dev)

    Description

      Commit "setup: fix PySide6._all_ after the wheel split" 4c0b1be1e2136b4c0c1f348cc1b80aeb9b179a11 https://codereview.qt-project.org/c/pyside/pyside-setup/+/403392 breaks cmake build. The condition

      location.parents[1].name == "build"
      

      is used in _find_all_qt_modules to detect if we are building, but that doesn't work in cmake builds, where the path can be anything. This causes pyi generation to fail with

      Traceback (most recent call last):
      
        File "/build/pyside6/src/pyside-setup-opensource-src-6.3.0/sources/pyside6/PySide6/QtCore/../support/generate_pyi.py", line 134, in <module>
          generate_all_pyi(outpath, options=options)
        File "/build/pyside6/src/pyside-setup-opensource-src-6.3.0/sources/pyside6/PySide6/QtCore/../support/generate_pyi.py", line 86, in generate_all_pyi
          raise ImportError(f"The module(s) '{errors}' do not exist")
      ImportError: The module(s) 'QtCore' do not exist
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ctismer Christian Tismer
            arojas Antonio Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: