-
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 should use the distro module: platform.linux_distribution() has been deprecated in Python 3.5 #3823
Comments
Would this imply that if Because I want to use |
No, I suggest to put it in pip/_vendor/ "hidden" package. |
That would be swell. LMK if I can help. |
It's only a tiny module, so I don't see a big issue. As I don't use Linux, I don't have any view on whether distro is the "right" solution here - I don't know what options exist - so I'm OK with whatever the experts agree on. |
I've planned on doing that yes, I jsut hadn't gotten around to it yet. |
If you provide me with the information, I can submit the PR |
I've pushed #3906 hopefully I did not forget anything ? |
To avoid DeprecationWarning for platform.linux_distribution() Closes pypa#3823
@nir0s hmm for some reason, pip's tests get stuck on pypy with the vendored distro (==0.6.0): any clue ? |
My bad, it must have been a glitch in travis. Relaunching the build fixed it. |
To avoid DeprecationWarning for platform.linux_distribution() Closes #3823
This change breaks pip on Windows fully, completely, and entirely:
If an
|
Note that the full distro package (as opposed to the version integrated into pip) defends itself aggressively against failing in this manner:
|
Description:
"pip install PrettyTable" logs a PendingDeprecationWarning because platform.linux_distribution() has been deprecated in Python 3.5:
I suggest to replace the function with the distro module:
FYI platform.linux_distribution() and platform.dist() have been deprecated by https://bugs.python.org/issue1322
The text was updated successfully, but these errors were encountered: