The warning message for Python 2.7 EOL is shown even for Pythons that are not EOL'ing
See original GitHub issueEnvironment
- pip version: 19.0.1
- Python version: pypy 6.0.0
- OS: macOS
PyPy is not EOL’ing on January 1, 2020, but the warning message emitted claims it is.
Description
Not sure how much fixing this matters – I’m not sure whether there’s a clear existing statement or commitment for pip
to maintain support for Python2 regardless of CPython (I’d assume from the addition of this warning that there’s at least some near-term plan to follow suit).
But as is, I’ve had a few internal developers ask me whether the message was accurate for us, for which I’ve had to explain it wasn’t, so I figured I’d see whether modifying this message matters to anyone else.
Expected behavior A warning simply about pip’s own plans in cases where the interpreter itself is not EOLing
How to Reproduce
Run e.g. pip list
under Python 2.7.
Output
⊙ pip list | head -n2 julian@Air ●
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
@xavfernandez Thanks for the workaround, I bet it can prove useful for lots of small projects.
Still, on by projects it is effectely impossible to apply this. For example on OpenStack we have hundreads of job definitions (and multiple CI systems) and even with a lot of inheritance between them we could not be able to obliterate this message.
In addition to this this could pose problem on many places where PYTHONWARNINGS is already defined, for different purposes.
I am afraid that the correct solution for this is to undo the change that adds this “feature”.
Is there a way to permanently disable this (annoying) warning which is polutting the build logs? … or we should just stop using newer versions of pip to avoid it?
For pip version check we at least had PIP_DISABLE_PIP_VERSION_CHECK to use to diable it but for this one I was not able to find any cli option to diable it.
This gets displayed on each pip call and if you could have lots of them even on a single tox environment, making your build logs like the 🎄