reckless: further verbosity/squelch of pip output

This commit is contained in:
Alex Myers 2022-12-05 12:29:23 -06:00 committed by Christian Decker
parent 8653d1200f
commit 70fc702ee4

View File

@ -376,7 +376,11 @@ def _install_plugin(src: InstInfo) -> bool:
if src.deps is not None: if src.deps is not None:
logging.debug(f'installing dependencies using {src.deps}') logging.debug(f'installing dependencies using {src.deps}')
procedure = install_methods[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() pip.wait()
if pip.returncode == 0: if pip.returncode == 0:
print('dependencies installed successfully') print('dependencies installed successfully')