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:
commit
d35bedc5cb
1
news/10696.bugfix.rst
Normal file
1
news/10696.bugfix.rst
Normal file
|
@ -0,0 +1 @@
|
|||
Fix uninstall editable from Windows junction link.
|
|
@ -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})"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue