setuptools
setuptools copied to clipboard
Avoid undocumented `pypa/wheel` API in `dist_info`
Summary of changes
Avoid pypa/wheel API in dist_info
- Instead of using
bdist_wheelto convertegg-infodirectory intodist-info, just do the conversion directly. This relies on the fact thatPKG-INFOandMETADATAfiles are compatible after the last PRs.
This is done because there is an understanding that pypa/wheel is not meant to be used public yet and will change in the future.
This is part of a series of PRs:
- #3903
- #3904
- #3905
- #3906
- #3907
- #3908
The motivation for this series of PRs is the following:
- Logic for generating
.egg-infoand.dist-infodirectories is intertwined and implicit (See #1386). - Setuptools uses
pypa/wheelAPI which is not stable yet and is very likely to change in the future. pypa/wheelmaintainers previously described that the long term vision is to transferbdist_wheeldirectly tosetuptools(See pypa/wheel#262, pypa/wheel#472, pypa/wheel#472).
Pull Request Checklist
- [ ] Changes have tests
- [ ] News fragment added in
changelog.d/. (See documentation for details)