-
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
pip list in JSON format does not contain location for editable installs #7664
Comments
It would seem that location will appear in the json output in verbose mode only: pip/src/pip/_internal/commands/list.py Lines 306 to 308 in e9f4612
Can you try again with -v ? That said, I see no good reason for tying that json field to the verbose mode, so I'd suggest outputting it unconditionally. |
Indeed with "-v" the output contains the locations of all packages:
But yes: fixing the non-verbose behavior would be a superior solution :-) |
WIP PR in #7670 |
@ThimoNeubauer if you are still interested in this issue, you may want to test a possible solution in #10249 |
Environment
Description
If a package is installed with
pip install -e
then the output ofpip list
contains a location column, e.g.:I'd like to use the location information to know which packages are in "editable" mode. Parsing the column format doesn't seem a smart idea, that's what the JSON output is for. However the location parameter is missing in JSON mode:
Expected behavior
I'd expect to see:
to match the
pip list --format columns
outputHow to Reproduce
python -m pip install --upgrade pip setuptools
to be sure to use the latest and greatest versionspython -m pip install -e
a source package. For the output above I downloaded the latest six sourcepython -m pip list
and compare withpython -m pip list --format json
to see that the location data is missingOutput
The text was updated successfully, but these errors were encountered: