Skip to content

Commit 0e30b3a

Browse files
committed
show: show editable location instead if package is editable (#11638)
1 parent 5f3f592 commit 0e30b3a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/11638.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make ``pip show`` show the editable location if package is editable

src/pip/_internal/commands/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def _get_requiring_packages(current_dist: BaseDistribution) -> Iterator[str]:
119119
yield _PackageInfo(
120120
name=dist.raw_name,
121121
version=str(dist.version),
122-
location=dist.location or "",
122+
location=str(dist.editable_project_location) if dist.editable else dist.location or "",
123123
requires=requires,
124124
required_by=required_by,
125125
installer=dist.installer,

0 commit comments

Comments
 (0)