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
[BUG] Editable wheel match import paths that are not theirs #3561
Comments
With debugger I can see the moment when foo.bar is chosen in place of foobar:
When fullname is "foobar" and pkg is "foo", it enter the if while it should not. Using |
Thank you very much for reporting this @proto3, I am working on a PR. |
This was so fast 😃 |
The reporting was excellent, it helped a lot! Thank you. |
setuptools version
65.2.0
Python version
3.10.6
OS
Ubuntu 20.04
Additional environment information
No response
Description
I'm currently working with two packages having names beginning the same, let's call them foo and foobar for example.
I install both of them using
pip install -e
, and both can be imported normally:Now I add a module bar in the foo package, so I can import foo, foobar and foo.bar
But importing foobar now always result in importing foo.bar
Expected behavior
Importing foobar should never result in importing foo.bar instead.
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: