-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Setuptools 71.0.1 provides only partial metadata for its vendored dependencies #4482
Comments
9 tasks
rouault
added a commit
to rouault/gdal
that referenced
this issue
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
rouault
added a commit
to rouault/gdal
that referenced
this issue
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
Thanks for the report. This is essentially a dupe of #4480. Thanks for the extra context. |
rouault
added a commit
to OSGeo/gdal
that referenced
this issue
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
This was referenced Jul 18, 2024
bashonly
added a commit
to yt-dlp/yt-dlp
that referenced
this issue
Jul 18, 2024
pypa/setuptools#4480 (comment) pypa/setuptools#4482 Authored by: bashonly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
setuptools version
71.0.1
Python version
tested with 3.12, but applies to any supported version
OS
tested on linux, but applies to any OS
Additional environment information
No response
Description
Setuptools 71.0.1 provides only partial metadata for its vendored dependencies, which causes issues with code that expects to be dealing with original upstream dists (for example, to query versions of
importlib-resources
orimportlib-metadata
).This applies both to the wheel and the sdist archive found on PyPI.
I assume this is a packaging oversight, because git repository seems to contain full metadata for those dependencies (example).
Expected behavior
Complete metadata to be included for vendored dependencies, since they seem to be visible to the outside world now.
How to Reproduce
Consider the following example program:
Output
If ran in virtual environment without
importlib-metadata
and withoutsetuptools
installed:If ran in virtual environment with latest
importlib-metadata
installed butsetuptools
not installed:If ran in virtual environment without
importlib-metadata
installed and withsetuptools
70.3.0 installed:If ran in virtual environment without
importlib-metadata
installed and withsetuptools
71.0.0 installed:This happens because 70.0.0 does not provide any metadata for its vendored dependencies:
This is also the cause of #4477.
If ran in virtual environment without
importlib-metadata
installed and withsetuptools
71.0.1 installed:The metadata is now seemingly provided
but it is incomplete, and hence cannot be used to obtain version:
#4480 is likely related to this as well.
The text was updated successfully, but these errors were encountered: