Add --disable-pip-version-check to pip calls
Users get too confused by the warning the lack of it generates on plugin installs/uninstalls and updates of any kind through pip. An FAQ entry on that matter hasn't helped, so we are now pulling out the nuclear option to reduce support overhead. Implements #2988
This commit is contained in:
1 parent
d452051c0a
commit
d7aae66886
3 files changed
+9
-3
No files matched your search
@@ -363,7 +363,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), '--no-cache-dir']
|
||||
pip_args = ["--disable-pip-version-check", "install", sarge.shell_quote(source), "--no-cache-dir"]
|
||||
|
||||
if dependency_links or self._settings.get_boolean(["dependency_links"]):
|
||||
pip_args.append("--process-dependency-links")
|
||||
@@ -521,7 +521,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
|
||||
if origin is None:
|
||||
origin = plugin.origin[2]
|
||||
|
||||
pip_args = ["uninstall", "--yes", origin]
|
||||
pip_args = ["--disable-pip-version-check", "uninstall", "--yes", origin]
|
||||
try:
|
||||
self._call_pip(pip_args)
|
||||
except:
|
||||
|
||||
Reference in new issue
Block a user