Install Orchestrator¶
install
¶
Unified installation orchestrator.
Single entry point for the complete ComfyUI installation. All logic lives in domain modules; this file only coordinates the 12-step flow.
Steps:
===== ================================ ===================================
Step Label Module
===== ================================ ===================================
1 System Configuration :mod:.system
2 Checking Prerequisites :mod:.system
3 Creating Python Environment :mod:.environment
4 Provisioning Configuration :mod:.environment
5 Setting Up ComfyUI :mod:.repository
6 External Folders :mod:.repository
7 Core Dependencies :mod:.dependencies
8 Python Packages :mod:.dependencies
9 Custom Nodes :mod:.dependencies
10 Performance Optimizations :mod:.optimizations
11 Finalization :mod:.finalize
12 Model Downloads :mod:.finalize
===== ================================ ===================================
Error handling convention¶
Each module follows one of three strategies:
Fatal — SystemExit(1) or re-raise. Used when the step is
blocking and the installation cannot continue (e.g. Git missing,
venv creation failure, ComfyUI clone failure after retries).
Log + continue — Log a warning and return False or None.
Used for non-critical enhancements that should not block the
installation (e.g. aria2 missing → fallback to httpx,
optimization packages failing, individual custom node clone failure).
Best-effort — subprocess.run with return code silently
ignored. Used only for truly optional side-effects
(e.g. conda init). Always annotated with
# best-effort, ignore errors.
All subprocess.run() calls without check=True are annotated
with one of these conventions for quick auditability.
Typical usage::
from src.installer.install import run_install
run_install(install_path=Path("D:/ComfyUI"))
run_install(install_path, install_type=InstallType.VENV, *, verbose=False, node_tier=NodeTier.FULL, cuda_version='', skip_nodes=False)
¶
Run the complete ComfyUI installation in 12 unified steps.
Resolves install_path to an absolute path, initialises the
logger, then executes each step sequentially. Any fatal
failure raises :class:~src.enums.InstallerFatalError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
install_path
|
Path
|
Root installation directory. Will be resolved to an absolute path. |
required |
install_type
|
InstallType
|
Environment type — :attr: |
VENV
|
verbose
|
bool
|
If |
False
|
node_tier
|
NodeTier
|
Custom nodes bundle tier —
:attr: |
FULL
|
Raises:
| Type | Description |
|---|---|
InstallerFatalError
|
On missing prerequisites or fatal errors. |
Source code in src/installer/install.py
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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | |