diff --git a/comfy_cli/uv.py b/comfy_cli/uv.py index 76c7629..f807b77 100644 --- a/comfy_cli/uv.py +++ b/comfy_cli/uv.py @@ -246,10 +246,14 @@ def Download( "-m", "pip", "download", - "-r", - str(reqFile), ] + if isinstance(reqFile, (str, Path)): + cmd.extend(["-r", str(reqFile)]) + elif isinstance(reqFile, list): + for rf in reqFile: + cmd.extend(["-r", str(rf)]) + if extraUrl is not None: cmd.extend(["--extra-index-url", extraUrl]) @@ -271,14 +275,13 @@ def Wheel( out: Optional[PathLike] = None, ) -> subprocess.CompletedProcess[Any]: """For now, the `wheel` cmd has no uv support, so use pip""" - cmd = [ - str(executable), - "-m", - "pip", - "wheel", - "-r", - str(reqFile), - ] + cmd = [str(executable), "-m", "pip", "wheel"] + + if isinstance(reqFile, (str, Path)): + cmd.extend(["-r", str(reqFile)]) + elif isinstance(reqFile, list): + for rf in reqFile: + cmd.extend(["-r", str(rf)]) if extraUrl is not None: cmd.extend(["--extra-index-url", extraUrl])