Distribution objects from arbitrary paths

I don’t directly see anything in the API to get information about a dist-info in an arbitrary location.

That’s basically required for pip to switch over to using importlib.metadata. pip currently operates by building a package in a temporary directory and gets metadata about the built package from the dist-info directory, using pkg_resources, especially for PEP 517 builds.