Dependencies¶
dependencies
¶
Python dependency management — Steps 7-9.
Installs all Python packages required by ComfyUI:
- Core (Step 7): PyTorch with CUDA index, ComfyUI
requirements.txt. - Standard + Wheels (Step 8): additional packages and
pre-built
.whlfiles (e.g. Nunchaku, InsightFace). - Custom Nodes (Step 9): delegates to :mod:
src.installer.nodesfor Git-clone-based node installation.
All installs use uv — no raw pip.
install_core_dependencies(python_exe, comfy_path, deps, log, *, cuda_tag)
¶
Install PyTorch and ComfyUI requirements.
Performs two sub-steps:
- Install PyTorch packages from the CUDA index URL.
- Install ComfyUI's own
requirements.txt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
comfy_path
|
Path
|
ComfyUI repository directory. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
CUDA tag to select PyTorch variant, e.g. |
required |
Source code in src/installer/dependencies.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
install_python_packages(python_exe, deps, log, *, cuda_tag=None)
¶
Install additional standard packages listed in deps.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
GPU configuration tag to conditionally filter packages. |
None
|
Source code in src/installer/dependencies.py
install_wheels(python_exe, install_path, deps, log, *, cuda_tag=None)
¶
Download and install pre-built .whl packages.
Detects the Python version from the venv and picks the matching
wheel for each entry. Checksums are looked up from the
tools_manifest.json (downloaded at provision time) rather than
being hardcoded in dependencies.json.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
install_path
|
Path
|
Root installation directory. |
required |
deps
|
DependenciesConfig
|
Parsed |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
cuda_tag
|
str | None
|
CUDA tag for CUDA-aware wheel selection. |
None
|
Source code in src/installer/dependencies.py
install_custom_nodes(python_exe, comfy_path, install_path, log, *, node_tier='full', source_dir=None)
¶
Install custom nodes from custom_nodes.json (additive-only).
Resolves the manifest from install_path/scripts/ or from the
source scripts directory if not found locally. Delegates the actual
clone + requirements install to :func:nodes.install_all_nodes.
Also provisions nunchaku_versions.json into the Nunchaku node
directory if both files exist.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
python_exe
|
Path
|
Path to the venv Python executable. |
required |
comfy_path
|
Path
|
ComfyUI repository directory. |
required |
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |
node_tier
|
str
|
Bundle tier — |
'full'
|
source_dir
|
Path | None
|
Pre-resolved source scripts directory. If |
None
|
Source code in src/installer/dependencies.py
configure_manager_uv(install_path, log)
¶
Ensure ComfyUI-Manager uses uv instead of raw pip.
Writes use_uv = True to user/__manager/config.ini.
Creates the directory and file if they do not exist. If the
file already exists, the setting is updated in-place (or
appended if missing).
This aligns ComfyUI-Manager's runtime package management with
the rest of the UmeAiRT system (uv-only), resulting in
significantly faster and more stable installs when users add
custom nodes via the Manager UI.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
install_path
|
Path
|
Root installation directory. |
required |
log
|
InstallerLogger
|
Installer logger for user-facing messages. |
required |