Closed
Description
We have gotten rid of pkg_resources.get_distribution
in almost all the places in pip's codebase in #8054 except one.
pip/src/pip/_internal/req/req_install.py
Lines 443 to 468 in 334f06e
The idea to get rid of pkg_resources.get_distribution
from other places was taken from #8054 (comment) , but this was deferred to a follow-up PR given that the existing PR was already getting big, and it wasn't trivial to update the last function using that construct.
This issue is opened to drive discussion on how to implement the same.