Commit db7322e
pypi: pin setuptools<77 to dodge PEP 639 license validation crash
Real root cause of the macOS/Windows wheel failures (Linux x86_64 escaped
via different Python images): setuptools 77.0+ canonicalizes the license
expression in pyproject.toml via packaging.licenses, which requires
packaging>=24.2 IN THE BUILD ENVIRONMENT. cibuildwheel's isolated build
envs (especially cp39) don't pull that in by default, so they hit:
ImportError: Cannot import `packaging.licenses`.
Setuptools>=77.0.0 requires "packaging>=24.2" to work properly.
Two-part fix:
- Pin setuptools<77 in build-system.requires
- Also list packaging>=24.2 explicitly so future setuptools upgrades
don't reintroduce the issue
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5f0c2e8 commit db7322e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
0 commit comments