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 py deps
  • Loading branch information
telamonian committed Sep 19, 2024
1 parent 44cdcf1 commit ce20b62
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,18 @@ def feedback():
rprint("Thank you for your feedback!")


@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 ce20b62

Please sign in to comment.