Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: fix issue with build-linux-ubuntu-focal and setuptools 71.0.1 #10440

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

rouault
Copy link
Member

@rouault rouault commented Jul 18, 2024

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

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
@rouault rouault merged commit 7857931 into OSGeo:master Jul 18, 2024
33 checks passed
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 69.282% (-0.001%) from 69.283%
when pulling 852dafe on rouault:ci_importlib_metadata
into 15284ef on OSGeo:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants