Skip to content

Commit d35bedc

Browse files
authored
Merge pull request #10697 from jiunbae/main
Resolves junction links when deleting packages installed as editable
2 parents 0c6d20f + 84c8a4c commit d35bedc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/10696.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix uninstall editable from Windows junction link.

src/pip/_internal/req/req_uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def from_dist(cls, dist: BaseDistribution) -> "UninstallPathSet":
527527
# above, so this only covers the setuptools-style editable.
528528
with open(develop_egg_link) as fh:
529529
link_pointer = os.path.normcase(fh.readline().strip())
530-
assert link_pointer == dist_location, (
530+
assert os.path.samefile(link_pointer, dist_location), (
531531
f"Egg-link {link_pointer} does not match installed location of "
532532
f"{dist.raw_name} (at {dist_location})"
533533
)

0 commit comments

Comments
 (0)