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
This commit is contained in:
Gina Häußge committed 2018-07-06 12:08:52 +02:00
1 parent 0834288cfc
commit f7a3e6a6ee
1 file changed
+1 -1
@@ -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)