From f7a3e6a6ee7a51d7faece1431cca321ecbc237e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 6 Jul 2018 12:03:09 +0200 Subject: [PATCH] Add --no-cache-dir flag to update pip operations Otherwise we might run into some weird infinite loop issues within pip's cache handling under certain circumstances, and we really don't want to risk that in the field. See also #2543 for another issue worked around by this, and pypa/pip#3532 for the core issue --- src/octoprint/plugins/softwareupdate/updaters/pip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/updaters/pip.py b/src/octoprint/plugins/softwareupdate/updaters/pip.py index 6372da151..08dfed097 100644 --- a/src/octoprint/plugins/softwareupdate/updaters/pip.py +++ b/src/octoprint/plugins/softwareupdate/updaters/pip.py @@ -80,7 +80,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc install_arg = check["pip"].format(target_version=target_version, target=target_version) logger.debug(u"Target: %s, executing pip install %s" % (target, install_arg)) - pip_args = ["install", install_arg] + pip_args = ["install", install_arg, "--no-cache-dir"] pip_kwargs = dict() if pip_working_directory is not None: pip_kwargs.update(cwd=pip_working_directory)