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

Uncertainty on how to implement namespace packages (as in PEP 420) via import hooks #588

Open
abravalheri opened this issue Apr 29, 2022 · 0 comments

Comments

@abravalheri
Copy link
Contributor

Problem description

In a discussion about PEP 660 (editable installs), it was noted that it is difficult to handle namespace packages using a MetaPathFinder, the main challenge being dynamic path computation.

The consequence is that editable (used by many backends to implement PEP 660) is still not able to support namespaces.

I have proposed two approaches in the Python dicourse, Users category, however I am not sure if these solutions work just by accident (and therefore can be considered fragile/likely to break in future releases). Unfortunately this post has not received any feedback yet.

It would be good if we can clarify what is the recommended approach for implementing editable namespaces via import hooks/finders (or at least if we can consider the proposed approaches stable).

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

1 participant