mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-08 09:00:12 +00:00
add -I to uv BAD_FLAGS
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user