Update legacy editables support for compatibility with setuptools >= 69 by sbidoul · Pull Request #12477 · pypa/pip (original) (raw)

Since version 69, setuptools preserves _ in Name metadata and .egg-link files (before it converted them to -).

This is an attempt to make pip freeze and pip uninstall compatible with that behaviour, as well as fix various part of the testsuite that depended on that. The changes should be compatible with previous setuptools versions too.

This includes and extends #12458.