We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846a5c5 commit 56c2512Copy full SHA for 56c2512
comfy_cli/uv.py
@@ -7,8 +7,9 @@
7
from typing import Any, Optional, Union, cast
8
9
from comfy_cli import ui
10
-from comfy_cli.constants import GPU_OPTION
+from comfy_cli.constants import GPU_OPTION, OS
11
from comfy_cli.typing import PathLike
12
+from comfy_cli.utils import get_os
13
14
15
def _run(cmd: list[str], cwd: PathLike, check: bool = True) -> subprocess.CompletedProcess[Any]:
@@ -370,8 +371,9 @@ def make_override(self):
370
371
f.write("\n\n")
372
373
# TODO: remove numpy<2 override once torch is compatible with numpy>=2
- f.write("numpy<2\n")
374
- f.write("\n\n")
+ if get_os == OS.WINDOWS:
375
+ f.write("numpy<2\n")
376
+ f.write("\n\n")
377
378
completed = DependencyCompiler.Compile(
379
cwd=self.cwd,
0 commit comments