Skip to content

Commit d0c50a0

Browse files
authored
Merge pull request #10594 from pdegroote/main
2 parents 5d4a974 + 01b1388 commit d0c50a0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

news/10476.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Specify egg-link location in assertion message when it does not match installed location to provide better error message for debugging.

src/pip/_internal/req/req_uninstall.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ def from_dist(cls, dist: BaseDistribution) -> "UninstallPathSet":
535535
assert os.path.samefile(
536536
normalized_link_pointer, normalized_dist_location
537537
), (
538-
f"Egg-link {link_pointer} does not match installed location of "
539-
f"{dist.raw_name} (at {dist_location})"
538+
f"Egg-link {develop_egg_link} (to {link_pointer}) does not match "
539+
f"installed location of {dist.raw_name} (at {dist_location})"
540540
)
541541
paths_to_remove.add(develop_egg_link)
542542
easy_install_pth = os.path.join(

0 commit comments

Comments
 (0)