Skip to content

Defer import error for packaging.licenses in environments with packaging<24.2 #4898

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

Merged
merged 6 commits into from
Mar 20, 2025

Conversation

abravalheri
Copy link
Contributor

Summary of changes

Motivated by a well-known limitation of the vendoring system.

Closes #4894

Pull Request Checklist

@abravalheri
Copy link
Contributor Author

pyright is giving me a hard time even with the pyright: ignore[reportAssignmentType] comment...
So I guess I can try if not TYPE_CHECKING?

https://github.com/pypa/setuptools/actions/runs/13969415143/job/39107281188?pr=4898

@abravalheri abravalheri marked this pull request as ready for review March 20, 2025 13:22
@abravalheri abravalheri merged commit 5fe9c32 into pypa:main Mar 20, 2025
24 checks passed
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.

[BUG] setuptools==77.0.1 fails to import if packaging<24.2 is installed
1 participant