-
-
Notifications
You must be signed in to change notification settings - Fork 81
-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow importlib_metadata.distributions() to enumerate distributions under a given path #85
Comments
In GitLab by @yan12125 on Sep 6, 2019, 09:23 mentioned in commit yan12125/importlib_metadata@228e4447cfb9df12f2f636f96e3f8c0037aa75af |
In GitLab by @jaraco on Sep 9, 2019, 09:50 I agree, the patch suggested is a good one and serves the purpose. I worry a little bit about the proliferation of the
But even that would only work for whatever parameters the |
In GitLab by @jaraco on Sep 9, 2019, 11:06 mentioned in merge request !89 |
In GitLab by @yan12125 on Sep 14, 2019, 13:27 Thank you! Your design is great and it suits my needs. |
In GitLab by @yan12125 on Sep 6, 2019, 08:27
I'm working on porting a script from
pkg_resources
toimportlib_metadata
. A missing feature is that I cannot enumerate distributions under a given path easily.With
pkg_resources
, I do this:importlib_metadata.distributions()
appears to be the replacement. However, I need to manipulatesys.path
manually:Could you consider adding a parameter to
importlib_metadata.distributions()
? Here is a proof-of-concept patch:The text was updated successfully, but these errors were encountered: