Returns the wrong distribution
Hi, just found this project today! Sure I am doing something wrong that I will figure out, but in the mean time am pretty sure this is not intended behavior.
>>> from importlib_metadata import distribution
>>> distribution("blah")._path
Path('/home/pbecotte/venvs/settingcascade/lib/python3.7/site-packages/setuptools-40.8.0-py3.7.egg', 'EGG-INFO/')
Basically if the package isn't returned, it finds setuptools. I came across this while trying to look up my own packages version, after doing a poetry install
with the code in a src
directory. (Apparently the finders ALSO don't follow the egg-link
file to find the metadata in my editable install, not sure if this is a feature or a bug).