mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 04:42:09 -08:00
add -I to uv BAD_FLAGS
This commit is contained in:
parent
9d1accfea0
commit
7fd7fc67f7
1 changed files with 3 additions and 2 deletions
|
|
@ -4,6 +4,8 @@ import shlex
|
|||
import subprocess
|
||||
from functools import wraps
|
||||
|
||||
BAD_FLAGS = ("--prefer-binary", '-I', '--ignore-installed')
|
||||
|
||||
|
||||
def patch():
|
||||
if hasattr(subprocess, "__original_run"):
|
||||
|
|
@ -35,9 +37,8 @@ def patch():
|
|||
if "pip" not in command:
|
||||
return subprocess.__original_run([*command, *_args], **_kwargs)
|
||||
|
||||
cmd = command[command.index("pip") + 1 :]
|
||||
cmd = command[command.index("pip") + 1:]
|
||||
|
||||
BAD_FLAGS = ("--prefer-binary",)
|
||||
cmd = [arg for arg in cmd if arg not in BAD_FLAGS]
|
||||
|
||||
modified_command = ["uv", "pip", *cmd]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue