☔ Don't confuse users with pip's "OMG PY2.7 IS EOL!!1!" message

We know that python 2.7 is about to reach end of life. We are making
preparations for this in the devel branch. We don't need pip going
around and alarming our users about something they cannot solve, and
which pretty much is already solved anyhow.

So we nuke this stupid message present in current pip versions. Hard.

See also #2988
This commit is contained in:
Gina Häußge committed 2019-04-04 11:51:16 +02:00
1 parent 0b6dd7e76e
commit ff9c83ea25
2 files changed
+4 -2

No files matched your search

@@ -688,7 +688,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
if additional_args:
args.append(additional_args)
return self._pip_caller.execute(*args)
kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command"))
return self._pip_caller.execute(*args, **kwargs)
def _log_message(self, *lines):
self._log(lines, prefix=u"*", stream="message")
@@ -87,7 +87,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc
logger.debug(u"Target: %s, executing pip install %s" % (target, install_arg))
pip_args = ["--disable-pip-version-check", "install", install_arg, "--no-cache-dir"]
pip_kwargs = dict()
pip_kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command"))
if pip_working_directory is not None:
pip_kwargs.update(cwd=pip_working_directory)