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

Build (still) fails with setuptools > 65.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4, 6.4.1, 6.4.2, 6.4.3
    • Build System
    • None
    • Linux/Wayland, Linux/X11

    Description

      Building pyside6 with recent setuptools versions still fails, although https://bugreports.qt.io/browse/PYSIDE-2171 is closed.

      I still get the following error (with various newer and the newest setuptools versions):

      export PREFIX=/opt/emsconda/conda-bld/pyside6_1680335257476/_h_env_placehold
      export SRC_DIR=/opt/emsconda/conda-bld/pyside6_1680335257476/work
      Traceback (most recent call last):
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/work/setup.py", line 42, in <module>
          setup_runner.run_setup()
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/work/build_scripts/setup_runner.py", line 204, in run_setup
          self.run_setuptools_setup()
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/work/build_scripts/setup_runner.py", line 277, in run_setuptools_setup
          setup(**kwargs)
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/_h_env_placehold/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
          _install_setup_requires(attrs)
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/_h_env_placehold/lib/python3.11/site-packages/setuptools/__init__.py", line 75, in _install_setup_requires
          dist = MinimalDistribution(attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/_h_env_placehold/lib/python3.11/site-packages/setuptools/__init__.py", line 59, in __init__
          self.set_defaults._disable()
          ^^^^^^^^^^^^^^^^^
      AttributeError: 'MinimalDistribution' object has no attribute 'set_defaults'
      Traceback (most recent call last):
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/work/setup.py", line 42, in <module>
          setup_runner.run_setup()
        File "/opt/emsconda/conda-bld/pyside6_1680335257476/work/build_scripts/setup_runner.py", line 260, in run_setup
          raise RuntimeError(msg)
      RuntimeError:
      setup.py invocation failed with exit code: 1.
      

      This GitHub issue (https://github.com/pypa/setuptools/issues/3743) discusses the same problem and seems to have found a solution.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: