-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
File encoding issue in _install_wheel (pip 20.2, python 2) #8648
Comments
cc/ @chrahunt |
This sounds like a hairy topic. Quoting Python 2 documentation on
So I guess there is no “correct” way here. Python 3 detects UTF-8 support with a header flag. I’m not familiar with the ZIP spec to comment on the approach, and would assume it’s the best we can do. |
I posted #8684 for this. |
The wheel spec says filenames are utf-8 encoded so I guess we can rely on this? But it does not look right to me that we need to do such conversions. FWIW, I bissected it to 4bdb8bc. But the root cause is probably a bit earlier. I suspect we should preserve |
Oh, I did not know the wheel spec says that explicitly! That would make things a lot easier. The problem is a combination of 4bdb8bc and a previous change I made that introduced the |
I update #8684 to always assume UTF-8 instead. This should be quite straightforward now. |
Environment
Description
pip install mr.bob
fails with pip 20.2:I've not had time to investigate if that error comes from a bug in that old package or is a bug in the new
_install_wheel
. It works fine with pip 20.1 though, as well as with pip 20.2 on python 3.The text was updated successfully, but these errors were encountered: