-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New pip list column: Editable project location #10245
Comments
Maybe we should deprecate Location and add two new fields Metadata Location and Module Location. Both Location and Project Location are confusing names to me, and I don't think I would be able to tell which is which if you ask me an hour later. |
Module location does not make me immediately think to the directory containing pyproject.toml ? At least less so than Project location ? |
My post was possibly unclear: |
My mental model for metadata directory is "the directory that contains the metadata directory", and same goes for module directory. "Module" is definitely still not a very good name, but project is also ambiguous (and not a word we use much in the UI right now?) For pure-Python projects maybe "source distribution" makes sense, but not for packages installed from a binary wheel. Naming is hard… |
So in #10249 I'm naming the new column The default column output has therefore some changes in column titles ( In the json output, there is a new field
[updated: there is no breaking change] |
Updated previous comment, as there is actually no breaking change as the existing json fields do not change semantics at all. |
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
The text was updated successfully, but these errors were encountered: