Description
What's the problem this feature will solve?
When running pip list, the location field/column contains the location where the project is installed.
It is, roughly, the parent directory of the .(egg|dist)-info directory.
When running pip list, (or pip freeze, see also #10243), we are mainly interested in the project directory, not the metadata directory.
With setuptools editables, the issue is not acute, because the .egg-info
directory is in or below the project directory.
With PEP 660 editables, the metadata directory is in the the target environment and that location does not help finding the project directory.
Describe the solution you'd like
I propose adding a new column / json field in pip list output, named Project location
/ project_location
.
The Location
column keeps the same meaning but is only displayed in verbose mode.
The Project location
column is only displayed when there are editable distributions.
Alternative Solutions
None