File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/pip/_internal/commands Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change
1
+ Make ``pip show `` show the editable location if package is editable
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class _PackageInfo(NamedTuple):
53
53
name : str
54
54
version : str
55
55
location : str
56
+ editable_location : Optional [str ]
56
57
requires : List [str ]
57
58
required_by : List [str ]
58
59
installer : str
@@ -120,6 +121,7 @@ def _get_requiring_packages(current_dist: BaseDistribution) -> Iterator[str]:
120
121
name = dist .raw_name ,
121
122
version = str (dist .version ),
122
123
location = dist .location or "" ,
124
+ editable_location = dist .editable_project_location ,
123
125
requires = requires ,
124
126
required_by = required_by ,
125
127
installer = dist .installer ,
@@ -158,6 +160,8 @@ def print_results(
158
160
write_output ("Author-email: %s" , dist .author_email )
159
161
write_output ("License: %s" , dist .license )
160
162
write_output ("Location: %s" , dist .location )
163
+ if dist .editable_location :
164
+ write_output ("Editable project location: %s" , dist .editable_location )
161
165
write_output ("Requires: %s" , ", " .join (dist .requires ))
162
166
write_output ("Required-by: %s" , ", " .join (dist .required_by ))
163
167
You can’t perform that action at this time.
0 commit comments