Skip to content

Commit

Permalink
feat: install reqs.txt from src directory (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Mar 5, 2025
1 parent a717e3b commit 9ae75d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/comfy_pack/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,11 @@ def unpack_bento(bento: str, workspace: str, verbose: int):
snapshot = json.loads(Path(bento_obj.path_of("src/snapshot.json")).read_text())
install_comfyui(snapshot, comfy_workspace, verbose=verbose)
reqs_txt = bento_obj.path_of("env/python/requirements.txt")
if sys.platform != "linux":
src_reqs_txt = bento_obj.path_of("src/requirements.txt")
if os.path.exists(src_reqs_txt):
click.echo("Using requirements.txt from src directory")
reqs_txt = src_reqs_txt
install_dependencies(snapshot, reqs_txt, comfy_workspace, verbose=verbose)

for f in Path(bento_obj.path_of("src/input")).glob("*"):
Expand Down

0 comments on commit 9ae75d5

Please sign in to comment.