From bb065828f2982a2fd4fe1ab9461e8c675e10936c Mon Sep 17 00:00:00 2001 From: Michael Gane Date: Tue, 3 Apr 2018 10:51:52 +0100 Subject: [PATCH] pip install using --no-cache-dir for low memory devices --- AUTHORS.md | 1 + src/octoprint/plugins/pluginmanager/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS.md b/AUTHORS.md index b8b427a2b..1a4954554 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -87,6 +87,7 @@ date of first contribution): * [Josh Major](https://github.com/astateofblank) * ["alex-gh"](https://github.com/alex-gh) * [Bernd Zeimetz](https://github.com/bzed) + * [Ganey](https://github.com/ganey) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index f219186ae..54ae3cb92 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -333,7 +333,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, raise ValueError("Either URL or path must be provided") self._logger.info("Installing plugin from {}".format(source)) - pip_args = ["install", sarge.shell_quote(source)] + pip_args = ["install", sarge.shell_quote(source), '--no-cache-dir'] if dependency_links or self._settings.get_boolean(["dependency_links"]): pip_args.append("--process-dependency-links")