setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

Avoid undocumented `pypa/wheel` API in `dist_info`

Open abravalheri opened this issue 2 years ago • 0 comments

Summary of changes

Avoid pypa/wheel API in dist_info

  • Instead of using bdist_wheel to convert egg-info directory into dist-info, just do the conversion directly. This relies on the fact that PKG-INFO and METADATA files 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-info and .dist-info directories is intertwined and implicit (See #1386).
  • Setuptools uses pypa/wheel API which is not stable yet and is very likely to change in the future.
  • pypa/wheel maintainers previously described that the long term vision is to transfer bdist_wheel directly to setuptools (See pypa/wheel#262, pypa/wheel#472, pypa/wheel#472).

Pull Request Checklist

abravalheri avatar Apr 24 '23 12:04 abravalheri