Uploaded image for project: 'AI Platform Core Components'
  1. AI Platform Core Components
  2. AIPCC-1351

setuptools 68.2.2 for zstandard fails to build from source

    • False
    • Hide

      None

      Show
      None
    • False
    • AIPCC Application Platform 5

      The zstandard package is the currently the only package that needs an older version of setuptools. The latest release 0.23.0 from July 2024 pins setuptools < 69.0.0 as a workaround for a bug with build option handling. This bug has been resolved in recent versions of setuptools.

      The old version of setuptools does no longer bootstrap with newer setuptools from latest virtualenv package. Upstream removed the bdist_wheel command and wheel dependency:

       

        writing manifest file '/tmp/pip-modern-metadata-zyp72yqj/setuptools.egg-info/SOURCES.txt'
        creating '/tmp/pip-modern-metadata-zyp72yqj/setuptools-68.2.2.dist-info'
        error: invalid command 'bdist_wheel'
        error: subprocess-exited-with-error
         
        × Preparing metadata (pyproject.toml) did not run successfully.
        │ exit code: 1
        ╰─> See above for output.
         
        note: This error originates from a subprocess, and is likely not a problem with pip.
        full command: /work/bootstrap-output.cuda-ubi9/work-dir/setuptools-68.2.2/build-3.11.7/bin/python3 /work/bootstrap-output.cuda-ubi9/work-dir/setuptools-68.2.2/build-3.11.7/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmptttxd2mf
        cwd: /work/bootstrap-output.cuda-ubi9/work-dir/setuptools-68.2.2/setuptools-68.2.2
      
        Preparing metadata (pyproject.toml): finished with status 'error'
      error: metadata-generation-failed

      The easiest solution is to remove the version constraint from zstandard

       

              cheimes@redhat.com Christian Heimes
              cheimes@redhat.com Christian Heimes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: