pip show package_name --files
lists files incorrectly
#10204
Labels
Milestone
pip show package_name --files
lists files incorrectly
#10204
Description
When running
pip show package_name --files
the file paths returned are invalid paths. Specifically the prefix is the relative path between thesite-packages
and the current working directory.For example:
Note that
../../../../
is the relative path betweensite-packages
and the current working directory in my run.I suspect that this line introduced in this commit may be responsible.
Expected behavior
Previously, (e.g. with pip==9.0.1 and pip==21.1) the listed files were relative to the
site-packages
location.pip version
21.2.1
Python version
3.8
OS
Ubuntu 18.04
How to Reproduce
pip
pip show some_package --files
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: