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

Build of Pyside6 6.5 fails when "--(arch)data-dir" is set for Qt6 6.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5: Not important
    • 6.6.0, 6.5.3
    • 6.5.2
    • Build System
    • None
    • Linux/X11
    • 1ad0fa5b0 (dev), 58b005a12 (6.5)

    Description

      When Qt6 6.5 is configured (and built) with the following flags:

      -bindir $PREFIX/bin \
      -libdir $PREFIX/lib \
      -headerdir $PREFIX/include/qt6 \
      -archdatadir $PREFIX/lib/qt6 \
      -datadir $PREFIX/share/qt6
      

      The Pyside6 6.5[.2] setup fails with

      [INFO]: Making file /opt/conda/conda-bld/pyside6_1686858905124/work/build/qfp-py3.10-qt6.5.1-64bit-release/package/PySide6/scripts/_{_}init{_}_.py.
      error: [Errno 2] No such file or directory: '/opt/emsconda/conda-bld/pyside6_1686858905124/_h_env_placehold_pl/modules'
      setup.py/prepare_packages: [Errno 2] No such file or directory: '$PREFIX/modules'
      

      The reason for this is a (more or less) hard code file in the property `module_json_files_dir`: https://github.com/pyside/pyside-setup/blob/dev/build_scripts/qtinfo.py#L77-L80

      This also affects other directories.

      Workaround: Don't add the config flags shown above and live with a more cluttered Qt6 build.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              sscherfke sscherfke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes