-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
gh-84530: fix namespace package support in modulefinder #29196
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
Conversation
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
|
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
I see tests are failing. I suspect that's because the change modifies Edit: I ran |
|
I am not home now, so I will finish up looking into the feedback later. |
|
This PR is stale because it has been open for 30 days with no activity. |
|
Any progress on this PR? I have run into the same issue and was wondering if this fix was coming anytime soon. I can take a look but I have never contributed so I don't really know how that works with a PR I didn't make myself. |
|
I will try to rebase the PR and fix the tests in the weekend. |
brettcannon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the importlib changes look okay (no comment on the modulefinder changes).
Signed-off-by: Filipe Laíns <lains@riseup.net>
This reverts commit 23fb4e0. Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
I rewrote the fix to drop the importlib changes. |
Lib/modulefinder.py
Outdated
| # On namespace packages, spec.loader might be None, but | ||
| # spec.submodule_search_locations should always be set — check it instead. | ||
| # | ||
| # TODO: Update the type check once GH-119669 is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the ping 😊
Signed-off-by: Filipe Laíns <lains@riseup.net>
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
Since the importlib changes that previous raised concern have been removed, the fix is limited to |
Signed-off-by: Filipe Laíns lains@riseup.net
https://bugs.python.org/issue40350