Make pip quiet

This commit is contained in:
Spitap
2024-02-05 12:23:06 +01:00
parent 5f4817736f
commit 7ccc871da7

View File

@@ -49,7 +49,7 @@ def install_packages(names, venv=None, upgrade=False, **kwargs):
def get_package_version(name, venv=None, **kwargs):
"""Returns the version of an installed package."""
cmd = f"{get_pip_path(venv)} list --format json"
cmd = f"{get_pip_path(venv)} -qqq list --format json"
exit_code, output = utils.exec_cmd(cmd, **kwargs)
if exit_code != 0:
utils.error(f"Failed to get version of {name}. "