We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f3f592 commit 63edd62Copy full SHA for 63edd62
news/11638.bugfix.rst
@@ -0,0 +1 @@
1
+Make ``pip show`` show the editable location if package is editable
src/pip/_internal/commands/show.py
@@ -116,10 +116,14 @@ def _get_requiring_packages(current_dist: BaseDistribution) -> Iterator[str]:
116
117
metadata = dist.metadata
118
119
+ location = dist.location or ""
120
+ if dist.editable:
121
+ location = str(dist.editable_project_location)
122
+
123
yield _PackageInfo(
124
name=dist.raw_name,
125
version=str(dist.version),
- location=dist.location or "",
126
+ location=location,
127
requires=requires,
128
required_by=required_by,
129
installer=dist.installer,
0 commit comments