pip icon indicating copy to clipboard operation
pip copied to clipboard

Report windows paths in their original case

Open anntzer opened this issue 6 years ago • 5 comments

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.

anntzer avatar Aug 01 '19 15:08 anntzer

FTR, pip --version also prints lowercased path. See https://ci.appveyor.com/project/atugushev/test-package/builds/26772257#L17

atugushev avatar Aug 18 '19 00:08 atugushev

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 avatar Aug 18 '19 21:08 cjerdonek

@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.

atugushev avatar Aug 19 '19 03:08 atugushev

i see this hasn't been resolved yet, mind if i work on it?, already patched it just need to create the PR.

w1redch4d avatar Jul 03 '22 08:07 w1redch4d

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.)

uranusjr avatar Jul 04 '22 04:07 uranusjr