Skip to content

Commit

Permalink
Merge pull request #10697 from jiunbae/main
Browse files Browse the repository at this point in the history
Resolves junction links when deleting packages installed as editable
  • Loading branch information
pradyunsg authored Feb 19, 2022
2 parents 0c6d20f + 84c8a4c commit d35bedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/10696.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix uninstall editable from Windows junction link.
2 changes: 1 addition & 1 deletion src/pip/_internal/req/req_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def from_dist(cls, dist: BaseDistribution) -> "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})"
)
Expand Down

0 comments on commit d35bedc

Please sign in to comment.