fix uv on linux (#17139)
Some checks failed
Linter / ruff (push) Has been cancelled
Linter / eslint (push) Has been cancelled
Tests / tests on CPU with empty model (push) Has been cancelled

This commit is contained in:
silvertuanzi 2025-10-08 04:06:10 +08:00 committed by GitHub
parent d4f02b8916
commit 6685e532df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,8 @@ def patch():
modified_command = ["uv", "pip", *cmd]
result = subprocess.__original_run([*modified_command, *_args], **_kwargs)
cmd_str = shlex.join([*modified_command, *_args])
result = subprocess.__original_run(cmd_str, **_kwargs)
if result.returncode != 0:
return subprocess.__original_run(*args, **kwargs)
return result