-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a --fast-deps option to
comfy install/reinstall
that enables ne…
…w faster/unified/uv-based dependency install (#141) * added uv script * --fast-deps option now works with installing comfyui core and comfyui-manager * `comfy node install --fast-deps` is now supported * `--fast-deps` installs of core/nodes now auto-detect gpu if `torch` is already installed * added section on developing comfy-cli and ComfyUI-Manager together * clean up specification of --fast-deps option * fix python 3.9 incompatible type hint syntax * picked lint * post rebase cleanup * make `DependencyCompiler` more flexible/testable * fix routine for finding custom node dirs * remove awkward `fastInstallComfyDeps` shim function * mark `staticmethod`s with UpperCamelCase names * cleanup `DependencyCompiler.InstallBuildDeps` * started adding tests for code in `uv.py` module * test_uv now runs, dies on mock extension vs extension dependency conflict * `uv` subprocess calls now print cmd/output on error - output is currently unsatisfactory in the case of a dependency conflict - doesn't print the names of conflicting top-level packages. The uv maintainers have expressed interest in fixing this: astral-sh/uv#1854 * add parsing of `uv compile` conflict error * add `resolve_strategy="ask"` option to `DependencyCompiler.Compile` - will manually prompt user for resolution in case of extension-vs-extension dependency conflict, using `ui.prompt_select` * basic implementation of ext-vs-ext conflict resolution via manual user input now functional - needs better output * improved feedback/UX of manual dependency conflict resolution * fixup user input for conflict resolution; fixup test-uv paths * `test_compile` in `test_uv` now works/runs correctly via pytest - still needs an actual assert at the end * added `assert` to `test_compile`. Might still be a bit fragile * made `test_compile` more robust * small type hint fix * mark old py dep install funcs with `pip_` prefix * in `uv.py`, make func/methods `snake_case`, static methods `Snake_Case` * ci test fix * disable nuisance lint rule (W0707)
- Loading branch information
1 parent
fe102a8
commit 71cd6ef
Showing
14 changed files
with
563 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.