✨ Support central local pip command in server.pip
Plugin Manager, Software Update and Backup will use that if set. Otherwise the old default of using LocalPipCaller is used. Not exposed via the UI as this REALLY should only be used by people who know what they are doing and the majority of users out there will never ever have to use it. Implements #3700
This commit is contained in:
1 parent
a5e18300ea
commit
4110287349
7 files changed
+58
-19
No files matched your search
@@ -38,7 +38,7 @@ from octoprint.server.util.flask import (
|
||||
from octoprint.settings import valid_boolean_trues
|
||||
from octoprint.util import TemporaryDirectory, to_bytes, to_native_str
|
||||
from octoprint.util.net import download_file
|
||||
from octoprint.util.pip import LocalPipCaller
|
||||
from octoprint.util.pip import create_pip_caller
|
||||
from octoprint.util.platform import get_os, is_os_compatible
|
||||
from octoprint.util.version import (
|
||||
get_octoprint_version,
|
||||
@@ -201,8 +201,9 @@ class PluginManagerPlugin(
|
||||
self._notices_cache_ttl = self._settings.get_int(["notices_ttl"]) * 60
|
||||
self._confirm_disable = self._settings.global_get_boolean(["confirm_disable"])
|
||||
|
||||
self._pip_caller = LocalPipCaller(
|
||||
force_user=self._settings.get_boolean(["pip_force_user"])
|
||||
self._pip_caller = create_pip_caller(
|
||||
command=self._settings.global_get(["server", "commands", "localPipCommand"]),
|
||||
force_user=self._settings.get_boolean(["pip_force_user"]),
|
||||
)
|
||||
self._pip_caller.on_log_call = self._log_call
|
||||
self._pip_caller.on_log_stdout = self._log_stdout
|
||||
|
||||
Reference in new issue
Block a user