comfy-env 0.0.9__py3-none-any.whl → 0.0.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- comfy_env/__init__.py +1 -1
- comfy_env/env/detection.py +25 -2
- comfy_env/env/manager.py +1 -0
- {comfy_env-0.0.9.dist-info → comfy_env-0.0.11.dist-info}/METADATA +1 -1
- {comfy_env-0.0.9.dist-info → comfy_env-0.0.11.dist-info}/RECORD +8 -8
- {comfy_env-0.0.9.dist-info → comfy_env-0.0.11.dist-info}/WHEEL +0 -0
- {comfy_env-0.0.9.dist-info → comfy_env-0.0.11.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.0.9.dist-info → comfy_env-0.0.11.dist-info}/licenses/LICENSE +0 -0
comfy_env/__init__.py
CHANGED
|
@@ -40,7 +40,7 @@ This package provides:
|
|
|
40
40
|
The @isolated decorator and WorkerBridge are still available.
|
|
41
41
|
"""
|
|
42
42
|
|
|
43
|
-
__version__ = "0.0.
|
|
43
|
+
__version__ = "0.0.11"
|
|
44
44
|
|
|
45
45
|
from .env.config import IsolatedEnv, EnvManagerConfig, LocalConfig, NodeReq
|
|
46
46
|
from .env.config_file import (
|
comfy_env/env/detection.py
CHANGED
|
@@ -7,10 +7,16 @@ vs older GPUs which use CUDA 12.4.
|
|
|
7
7
|
This runs BEFORE PyTorch is installed, so we use nvidia-smi directly.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
import os
|
|
10
11
|
import subprocess
|
|
11
12
|
from typing import List, Dict, Optional
|
|
12
13
|
|
|
13
14
|
|
|
15
|
+
# Environment variable to override CUDA version detection
|
|
16
|
+
# Useful for CI environments without GPU
|
|
17
|
+
CUDA_VERSION_ENV_VAR = "COMFY_ENV_CUDA_VERSION"
|
|
18
|
+
|
|
19
|
+
|
|
14
20
|
def detect_gpu_info() -> List[Dict[str, str]]:
|
|
15
21
|
"""
|
|
16
22
|
Detect GPU name and compute capability using nvidia-smi.
|
|
@@ -126,7 +132,12 @@ def detect_cuda_version() -> Optional[str]:
|
|
|
126
132
|
Returns:
|
|
127
133
|
"12.4" for Pascal or older (compute < 7.5),
|
|
128
134
|
"12.8" for Turing or newer (compute >= 7.5),
|
|
129
|
-
None if no GPU detected.
|
|
135
|
+
None if no GPU detected and no env var override.
|
|
136
|
+
|
|
137
|
+
Environment Variable Override:
|
|
138
|
+
Set COMFY_ENV_CUDA_VERSION to override auto-detection.
|
|
139
|
+
Useful for CI environments without GPU.
|
|
140
|
+
Example: COMFY_ENV_CUDA_VERSION=12.8
|
|
130
141
|
|
|
131
142
|
GPU Architecture Reference:
|
|
132
143
|
- Pascal (GTX 10xx, P100): compute 6.0-6.1 → CUDA 12.4
|
|
@@ -138,6 +149,15 @@ def detect_cuda_version() -> Optional[str]:
|
|
|
138
149
|
"""
|
|
139
150
|
gpus = detect_gpu_info()
|
|
140
151
|
if not gpus:
|
|
152
|
+
# No GPU detected - check for env var override
|
|
153
|
+
override = os.environ.get(CUDA_VERSION_ENV_VAR)
|
|
154
|
+
if override:
|
|
155
|
+
# Normalize format (e.g., "12.8" or "128" -> "12.8")
|
|
156
|
+
override = override.strip()
|
|
157
|
+
if override and '.' not in override and len(override) >= 2:
|
|
158
|
+
# Convert "128" -> "12.8"
|
|
159
|
+
override = f"{override[:-1]}.{override[-1]}"
|
|
160
|
+
return override
|
|
141
161
|
return None
|
|
142
162
|
|
|
143
163
|
# Check if any GPU is legacy (Pascal or older)
|
|
@@ -159,7 +179,10 @@ def get_gpu_summary() -> str:
|
|
|
159
179
|
gpus = detect_gpu_info()
|
|
160
180
|
|
|
161
181
|
if not gpus:
|
|
162
|
-
|
|
182
|
+
override = os.environ.get(CUDA_VERSION_ENV_VAR)
|
|
183
|
+
if override:
|
|
184
|
+
return f"No NVIDIA GPU detected (using {CUDA_VERSION_ENV_VAR}={override})"
|
|
185
|
+
return f"No NVIDIA GPU detected (set {CUDA_VERSION_ENV_VAR} to override)"
|
|
163
186
|
|
|
164
187
|
lines = []
|
|
165
188
|
for i, gpu in enumerate(gpus):
|
comfy_env/env/manager.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.11
|
|
4
4
|
Summary: Environment management for ComfyUI custom nodes - CUDA wheel resolution and process isolation
|
|
5
5
|
Project-URL: Homepage, https://github.com/PozzettiAndrea/comfy-env
|
|
6
6
|
Project-URL: Repository, https://github.com/PozzettiAndrea/comfy-env
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
comfy_env/__init__.py,sha256=
|
|
1
|
+
comfy_env/__init__.py,sha256=1EjSpAK20Z6RAXKn3onZwj2a_FIctG0E_LhWlE7SgIs,4250
|
|
2
2
|
comfy_env/cli.py,sha256=9GvQYrXlJRl0ZaCuFHvRtVxWQ34Axd5Brgu5FWRONp4,11424
|
|
3
3
|
comfy_env/decorator.py,sha256=daFR5aLzshkmo5sRKhSGPcTUgIUWml7Gs6A1bfnDuyc,15718
|
|
4
4
|
comfy_env/errors.py,sha256=egeyXY-j7KpxyA0s67TcJLEfJX23LCAD3v1P4FgQIGE,10917
|
|
@@ -9,8 +9,8 @@ comfy_env/runner.py,sha256=0YUqzK93u--7pKV6_yVC564AJE9rS3y81t5ZhQi2t4Y,9696
|
|
|
9
9
|
comfy_env/env/__init__.py,sha256=sybOBrxJCfL4Xry9NNd5xwn9hXIHudXlXDa7SpJkPCE,811
|
|
10
10
|
comfy_env/env/config.py,sha256=R8JyE5iQLHKgnxXOGA8SAI7iu2eYSfXn-MsaqHoU2_A,5667
|
|
11
11
|
comfy_env/env/config_file.py,sha256=2sTeBUqdDYPwQfUO-3Mu2zTsgxQ4IhllRxEd2a4pgPg,20593
|
|
12
|
-
comfy_env/env/detection.py,sha256=
|
|
13
|
-
comfy_env/env/manager.py,sha256=
|
|
12
|
+
comfy_env/env/detection.py,sha256=Br_Ed2aqGR6_M01UMZnrzVky3a2iyzz1XuhOXduM1zw,5993
|
|
13
|
+
comfy_env/env/manager.py,sha256=MRmqg3Qw0IYUwR6FtM3ZIcGZvWcnKDyO8xbzIAxnwCk,24782
|
|
14
14
|
comfy_env/env/security.py,sha256=dNSitAnfBNVdvxgBBntYw33AJaCs_S1MHb7KJhAVYzM,8171
|
|
15
15
|
comfy_env/env/platform/__init__.py,sha256=Nb5MPZIEeanSMEWwqU4p4bnEKTJn1tWcwobnhq9x9IY,614
|
|
16
16
|
comfy_env/env/platform/base.py,sha256=iS0ptTTVjXRwPU4qWUdvHI7jteuzxGSjWr5BUQ7hGiU,2453
|
|
@@ -32,8 +32,8 @@ comfy_env/workers/pool.py,sha256=MtjeOWfvHSCockq8j1gfnxIl-t01GSB79T5N4YB82Lg,695
|
|
|
32
32
|
comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
|
|
33
33
|
comfy_env/workers/torch_mp.py,sha256=DsfxE3LBAWEuGtk-p-YL0UhVQ7VDh73KT_TFRxYN4-Q,12563
|
|
34
34
|
comfy_env/workers/venv.py,sha256=_ekHfZPqBIPY08DjqiXm6cTBQH4DrbxRWR3AAv3mit8,31589
|
|
35
|
-
comfy_env-0.0.
|
|
36
|
-
comfy_env-0.0.
|
|
37
|
-
comfy_env-0.0.
|
|
38
|
-
comfy_env-0.0.
|
|
39
|
-
comfy_env-0.0.
|
|
35
|
+
comfy_env-0.0.11.dist-info/METADATA,sha256=oTBqvxpgXd5ctKduTg7654WXVNLkksrdpAoxuPbr0aY,5372
|
|
36
|
+
comfy_env-0.0.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
37
|
+
comfy_env-0.0.11.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
38
|
+
comfy_env-0.0.11.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
39
|
+
comfy_env-0.0.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|