Comfy-Org / comfy-cli

Command Line Interface for Managing ComfyUI
https://docs.comfy.org/comfy-cli/getting-started
GNU General Public License v3.0
291 stars 47 forks source link

Add builder for standalone python for comfy #158

Closed telamonian closed 3 months ago

telamonian commented 3 months ago

Adds a command comfy-cli standalone that will:

  1. grab an appropriate standalone python interpreter from https://github.com/indygreg/python-build-standalone
  2. determine requirements by analyzing an existing comfyui install and then recompile the requirements W.R.T. the version/platform/whatever of the standalone python interpreter
  3. fetch all comfyui requirements for the standalone python interpreter by doing one of 3a. install all requirements to the standalone's internal site-packages directory 3b. precache the package artifacts of all requirements 3c. fetch (if exists) or build the wheels of all requirements
  4. create a .tgz tarball containing the standalone interpreter and the requirements

Code exists to run all of 3a-c, though currently the standalone command itself only supports 3b.

socket-security[bot] commented 3 months ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
pypi/uv@0.3.2 environment, filesystem, network, shell, unsafe 0 36.8 MB astral-bot, crmarsh, zanie

View full report↗︎

telamonian commented 3 months ago

This PR is now out of draft status, is more-or-less feature complete, and is ready for testing. Especially if you have a windows machine, please checkout this PR branch and try out the new standalone command.

There is still a ton of cleanup to do, and any suggestions are welcome