1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Merge pull request #10697 from jiunbae/main

Resolves junction links when deleting packages installed as editable
This commit is contained in:
Pradyun Gedam 2022-02-19 11:50:41 +00:00 committed by GitHub
commit d35bedc5cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
news/10696.bugfix.rst Normal file
View file

@ -0,0 +1 @@
Fix uninstall editable from Windows junction link.

View file

@ -527,7 +527,7 @@ class UninstallPathSet:
# above, so this only covers the setuptools-style editable.
with open(develop_egg_link) as fh:
link_pointer = os.path.normcase(fh.readline().strip())
assert link_pointer == dist_location, (
assert os.path.samefile(link_pointer, dist_location), (
f"Egg-link {link_pointer} does not match installed location of "
f"{dist.raw_name} (at {dist_location})"
)