inline with SD Next logging style

This commit is contained in:
Yoink3000
2024-07-01 02:13:59 +08:00
parent 3fa0c6bce5
commit 47d865acc1
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ def pip(arg: str, ignore: bool = False, quiet: bool = False, forcePip = False):
uvMode = "[uv] " if uv else ""
arg = arg.replace('>=', '==')
if not quiet and '-r ' not in arg:
log.info(f'{uvMode}Install: package="{arg.replace("install", "").replace("--upgrade", "").replace("--no-deps", "").replace("--force", "").replace(" ", " ").strip()}"')
log.info(f'Install: package="{arg.replace("install", "").replace("--upgrade", "").replace("--no-deps", "").replace("--force", "").replace(" ", " ").strip()}" mode={"uv" if uv else "pip"}')
env_args = os.environ.get("PIP_EXTRA_ARGS", "")
log.debug(f'Running: {pipCmd}="{pip_log}{arg} {env_args}"')
result = subprocess.run(f'"{sys.executable}" -m {pipCmd} {pip_log}{arg} {env_args}', shell=True, check=False, env=os.environ, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-1
View File
@@ -206,7 +206,6 @@ def main():
installer.set_environment()
if args.uv:
installer.install("uv", "uv")
installer.log.info('Using "uv pip" instead of "pip" for packages installation')
installer.check_torch()
installer.check_onnx()
installer.check_diffusers()