Skip to content

Commit

Permalink
Merge pull request #10594 from pdegroote/main
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Apr 10, 2023
2 parents 5d4a974 + 01b1388 commit d0c50a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions news/10476.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Specify egg-link location in assertion message when it does not match installed location to provide better error message for debugging.
4 changes: 2 additions & 2 deletions src/pip/_internal/req/req_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,8 @@ def from_dist(cls, dist: BaseDistribution) -> "UninstallPathSet":
assert os.path.samefile(
normalized_link_pointer, normalized_dist_location
), (
f"Egg-link {link_pointer} does not match installed location of "
f"{dist.raw_name} (at {dist_location})"
f"Egg-link {develop_egg_link} (to {link_pointer}) does not match "
f"installed location of {dist.raw_name} (at {dist_location})"
)
paths_to_remove.add(develop_egg_link)
easy_install_pth = os.path.join(
Expand Down

0 comments on commit d0c50a0

Please sign in to comment.