Skip to content

Commit

Permalink
added dependency command to top level cli that just computes/instal…
Browse files Browse the repository at this point in the history
…ls python dependencies (#188)

* added `dependency` command to top level cli that just computes/installs py deps

* add hidden to `dependency` command
  • Loading branch information
telamonian committed Sep 19, 2024
1 parent 44cdcf1 commit 673fb73
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions comfy_cli/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from comfy_cli.env_checker import EnvChecker
from comfy_cli.standalone import StandalonePython
from comfy_cli.update import check_for_updates
from comfy_cli.uv import DependencyCompiler
from comfy_cli.workspace_manager import WorkspaceManager, check_comfy_repo

logging.setup_logging()
Expand Down Expand Up @@ -566,6 +567,19 @@ def feedback():
rprint("Thank you for your feedback!")


@app.command(hidden=True)
@app.command(
help="Given an existing installation of comfy core and any custom nodes, installs any needed python dependencies"
)
@tracking.track_command()
def dependency():
comfy_path, _ = workspace_manager.get_workspace_path()

depComp = DependencyCompiler(cwd=comfy_path)
depComp.compile_deps()
depComp.install_deps()


@app.command(help="Download a standalone Python interpreter and dependencies based on an existing comfyui workspace")
@tracking.track_command()
def standalone(
Expand Down

0 comments on commit 673fb73

Please sign in to comment.