Skip to content

Commit

Permalink
show: show editable location instead if package is editable (pypa#11638)
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Dec 6, 2022
1 parent 5f3f592 commit 282627a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/11638.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make `pip show` show the editable location if package is editable
2 changes: 1 addition & 1 deletion src/pip/_internal/commands/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _get_requiring_packages(current_dist: BaseDistribution) -> Iterator[str]:
yield _PackageInfo(
name=dist.raw_name,
version=str(dist.version),
location=dist.location or "",
location=str(dist.editable_project_location) if dist.editable else dist.location or "",
requires=requires,
required_by=required_by,
installer=dist.installer,
Expand Down

0 comments on commit 282627a

Please sign in to comment.