-
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
Resolves junction links when deleting packages installed as editable #10697
Conversation
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.
Or would it be better to use
pathlib.Path
?
You can if you prefer, but this is also fine. I think we want to check both the original recorded path and the real path though (and pass if either of them match).
Co-authored-by: Tzu-ping Chung <[email protected]>
I don't know perfectly how pypi pakcages are stored and managed, so I thought it would be sufficient to make sure that the absolute path of the package path and the absolute path of the saved path are the same when deleting. |
Let’s call |
Does this look good to you? assert os.path.samefile(link_pointer, os.path.realpath(dist_location)), (
f"Egg-link {link_pointer} does not match installed location of "
f"{dist.raw_name} (at {dist_location})"
) or re-define |
I think Edit: Oh, not actually, it’s using |
I checked that it works well in the environment presented in the #10696 . The |
Using
Is there anything that blocks this PR from being merged? @uranusjr? |
Resolve #10696
Or would it be better to use
pathlib.Path
?