pip
pip copied to clipboard
Report windows paths in their original case
Environment
- pip version: 19.2.1
- Python version: 3.7
- OS: Windows
Description On Windows; pip reports certain paths after lowercasing them.
Expected behavior Paths should be reported in their original case.
How to Reproduce
pip install setuptools
Output
Requirement already satisfied: setuptools in c:\users\my user name\miniconda3\lib\site-packages (41.0.1)
but the following would be nicer:
Requirement already satisfied: setuptools in C:\Users\My User Name\miniconda3\lib\site-packages (41.0.1)
Similar issues: https://github.com/pypa/pip/pull/4770, https://github.com/pypa/pip/issues/6582. Admittedly a minor cosmetic point, though.
FTR, pip --version also prints lowercased path. See https://ci.appveyor.com/project/atugushev/test-package/builds/26772257#L17
I suspect this issue is too big to address in full generality as a single PR, so we may want to treat this as an umbrella tracking issue until we know for sure.
FTR, pip --version also prints lowercased path.
@atugushev Can you file this as a separate issue? This seems good to tackle as a first step. It is isolated and seems related to how CPython sets __file__.
@cjerdonek
Can you file this as a separate issue? This seems good to tackle as a first step. It is isolated and seems related to how CPython sets
__file__.
Sure, here is the issue #6894.
i see this hasn't been resolved yet, mind if i work on it?, already patched it just need to create the PR.
Sure, go ahead and investigate. Note that we currently have two metadata backends that we switch between depending on the Python version, and the behaviour may be slightly different around this. (I’m not sure if this is related, but keep in mind if it is.)