add -I to uv BAD_FLAGS
This commit is contained in:
+2
-1
@@ -4,6 +4,8 @@ import shlex
|
|||||||
import subprocess
|
import subprocess
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
|
BAD_FLAGS = ("--prefer-binary", '-I', '--ignore-installed')
|
||||||
|
|
||||||
|
|
||||||
def patch():
|
def patch():
|
||||||
if hasattr(subprocess, "__original_run"):
|
if hasattr(subprocess, "__original_run"):
|
||||||
@@ -37,7 +39,6 @@ def patch():
|
|||||||
|
|
||||||
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]
|
cmd = [arg for arg in cmd if arg not in BAD_FLAGS]
|
||||||
|
|
||||||
modified_command = ["uv", "pip", *cmd]
|
modified_command = ["uv", "pip", *cmd]
|
||||||
|
|||||||
Reference in New Issue
Block a user