-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cleanup fails on Windows when build dir includes junctions #5300
Comments
@pradyunsg Not really, in that #5306 is about a special file in the source directory which can't be copied to the temporary build directory. This is about the build stage creating a special file that pip can't delete when removing the temporary build directory. A workaround for this issue might be that pip simply ignores errors when trying to delete the temporary build directory. The user would then have to delete it manually (we could maybe write a warning giving the name of the directory that we failed to delete). |
Ah. Okhay. Thanks for the clarification @pfmoore. :) |
Just to clarify: This is about Python not recognizing junction directory links properly, so |
@vidartf Thanks for the clarification. Nevertheless, I think the best pip could do is report that it failed to delete the directory and leave it to the user to do so manually. |
@pfmoore Sure, but as I do not understand all the nuances involved, I just wanted to make the case I was reporting clear. Your solution seems good to me! |
Description:
When running
pip install <source install target>
which triggers a build step that creates Windows directory junctions, the cleanup step of pip can fail with aFileNotFoundError [WinError 3]
. The file(s) in question is within one of the directory junctions in the temporary folder created by pip.The underlying cause is Python issue 31226, and the issue is explained further there. What I'm hoping for is either:
What I've run:
pip install .
, being in a source checkout for a package that will create internal directory junctions during its build.Stack trace
The text was updated successfully, but these errors were encountered: