Skip to content
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

Investigate entrypoints instead of pkgutils.itermodules() #2

Open
Carreau opened this issue Mar 12, 2020 · 1 comment
Open

Investigate entrypoints instead of pkgutils.itermodules() #2

Carreau opened this issue Mar 12, 2020 · 1 comment

Comments

@Carreau
Copy link
Contributor

Carreau commented Mar 12, 2020

https://pypi.org/project/entrypoints/ was written by Thomas Kluyver to speedup and simplify finding and loading entrypoints.

pkgutils.itermodules() can be slow as it has to enumerate all the packages IIRC, so entrypoints might be a good alternative. It also allow to have backends as part of a package with a different name which is convenient for flexibility.

@teoliphant
Copy link
Member

This looks like a good idea. The only issue is extending the number of dependencies that EPython has -- which we'd like to keep minimal right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants