Skip to content

Commit

Permalink
CI: fix issue with build-linux-ubuntu-focal and setuptools 71.0.1
Browse files Browse the repository at this point in the history
Fixes following error:
```
Traceback (most recent call last):
  File "/home/runner/work/gdal/gdal/superbuild/build/gdal/swig/python/setup.py", line 15, in <module>
    from setuptools.command.build_ext import build_ext
  File "/home/runner/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 19, in <module>
    from .dist import Distribution
  File "/home/runner/.local/lib/python3.8/site-packages/setuptools/dist.py", line 30, in <module>
    from . import _entry_points
  File "/home/runner/.local/lib/python3.8/site-packages/setuptools/_entry_points.py", line 44, in <module>
    def validate(eps: metadata.EntryPoints):
AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'
CMake Error at build_ext.cmake:5 (message):
  setup.py bdist_wheel failed
```

Likely related to similar pypa/setuptools#4482
  • Loading branch information
rouault committed Jul 18, 2024
1 parent 72b6387 commit b4f992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cmake_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
# Workaround bug in ogdi packaging
sudo ln -s /usr/lib/ogdi/libvrf.so /usr/lib
#
python3 -m pip install -U pip wheel setuptools numpy
python3 -m pip install -U pip wheel setuptools numpy importlib_metadata
python3 -m pip install -r $GITHUB_WORKSPACE/autotest/requirements.txt
- name: Build libjxl
Expand Down

0 comments on commit b4f992d

Please sign in to comment.