-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
editable_wheel is broken in 68.1.0 #4019
Comments
Hi @emontnemery, thank you for opening the issue. Could you please provide the full reproducer? In your example it is not clear where the |
I was trying to illustrate that the way in which Here's a reproduction of the actual error we see: Prerequisite:Python 3.11 is the current interpreter, for example selected by pyenv Step by step
The problem is that, in this example,
Which makes https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder.find_spec |
Hi @emontnemery, thank you very much for the reproducer. Could you please try if #4020 works for you? (You can also use |
Thanks @abravalheri, that works! |
setuptools version
setuptools==68.1.0
Python version
Python 3.11
OS
Linux
Additional environment information
No response
Description
setuptools 68.1.0 broke editable_wheels due to commit db3743a from #3995
To my understanding, the problem is that
_find_nested_spec
passes the wrong path toPathFinder.find_spec(rest, path=[parent_path])
Expected behavior
Pass the full path to
PathFinder.find_spec
.Doing that requires a lookup to happen first though, which pretty much defeats the purpose of db3743a though as I understand it, which was to let Python handle the case insensitive lookup.
How to Reproduce
This is how
PathFinder.find_spec
treats its input path, note how it only cares about the tail of the name to lookup:Output
The text was updated successfully, but these errors were encountered: