From 70fc702ee483cf3a22efaf1c029dfad882423001 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Mon, 5 Dec 2022 12:29:23 -0600 Subject: [PATCH] reckless: further verbosity/squelch of pip output --- tools/reckless | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/reckless b/tools/reckless index c378f5aa0..913511dbc 100755 --- a/tools/reckless +++ b/tools/reckless @@ -376,7 +376,11 @@ def _install_plugin(src: InstInfo) -> bool: if src.deps is not None: logging.debug(f'installing dependencies using {src.deps}') procedure = install_methods[src.deps] - pip = Popen(procedure, cwd=plugin_path, stdout=PIPE) + # Verbose output requested. + if logging.root.level < logging.WARNING: + pip = Popen(procedure, cwd=plugin_path) + else: + pip = Popen(procedure, cwd=plugin_path, stdout=PIPE, stderr=PIPE) pip.wait() if pip.returncode == 0: print('dependencies installed successfully')