comfy-env 0.0.15__py3-none-any.whl → 0.0.17__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/install.py +15 -4
- comfy_env/wheel_sources.yml +12 -0
- {comfy_env-0.0.15.dist-info → comfy_env-0.0.17.dist-info}/METADATA +1 -1
- {comfy_env-0.0.15.dist-info → comfy_env-0.0.17.dist-info}/RECORD +7 -7
- {comfy_env-0.0.15.dist-info → comfy_env-0.0.17.dist-info}/WHEEL +0 -0
- {comfy_env-0.0.15.dist-info → comfy_env-0.0.17.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.0.15.dist-info → comfy_env-0.0.17.dist-info}/licenses/LICENSE +0 -0
comfy_env/install.py
CHANGED
|
@@ -87,13 +87,15 @@ def install(
|
|
|
87
87
|
)
|
|
88
88
|
|
|
89
89
|
# Install tools first (e.g., Blender)
|
|
90
|
+
# Tools are installed to ComfyUI root (shared across all nodes)
|
|
90
91
|
if full_config.tools:
|
|
91
92
|
log(f"Installing {len(full_config.tools)} tool(s)...")
|
|
93
|
+
comfyui_root = node_dir.parent.parent # custom_nodes/../.. = ComfyUI/
|
|
92
94
|
for name, tool_config in full_config.tools.items():
|
|
93
95
|
if dry_run:
|
|
94
96
|
log(f" Would install {name} {tool_config.version}")
|
|
95
97
|
else:
|
|
96
|
-
install_tool(tool_config, log,
|
|
98
|
+
install_tool(tool_config, log, comfyui_root)
|
|
97
99
|
|
|
98
100
|
# Get environment config
|
|
99
101
|
env_config = full_config.default_env
|
|
@@ -236,7 +238,11 @@ def _get_install_info(
|
|
|
236
238
|
index_url = _substitute_template(config.get("index_url", ""), env)
|
|
237
239
|
|
|
238
240
|
if method == "index":
|
|
239
|
-
|
|
241
|
+
version_info = ""
|
|
242
|
+
if "version_template" in config:
|
|
243
|
+
resolved_version = _substitute_template(config["version_template"], env)
|
|
244
|
+
version_info = f" (version {resolved_version})"
|
|
245
|
+
return {"method": method, "description": f"from index {index_url}{version_info}"}
|
|
240
246
|
elif method == "github_index":
|
|
241
247
|
return {"method": method, "description": f"from {index_url}"}
|
|
242
248
|
elif method == "find_links":
|
|
@@ -275,8 +281,13 @@ def _install_cuda_package(
|
|
|
275
281
|
if method == "index":
|
|
276
282
|
# PEP 503 index - use pip --extra-index-url
|
|
277
283
|
index_url = _substitute_template(config["index_url"], env)
|
|
278
|
-
|
|
279
|
-
|
|
284
|
+
# Check for version_template (e.g., detectron2 with embedded torch/cuda version)
|
|
285
|
+
if "version_template" in config:
|
|
286
|
+
resolved_version = _substitute_template(config["version_template"], env)
|
|
287
|
+
pkg_spec = f"{package}=={resolved_version}"
|
|
288
|
+
else:
|
|
289
|
+
pkg_spec = f"{package}=={version}" if version else package
|
|
290
|
+
log(f" Installing {package} from index...")
|
|
280
291
|
_pip_install_with_index(pkg_spec, index_url, log)
|
|
281
292
|
|
|
282
293
|
elif method == "github_index":
|
comfy_env/wheel_sources.yml
CHANGED
|
@@ -120,6 +120,18 @@ packages:
|
|
|
120
120
|
method: pypi
|
|
121
121
|
description: Triton compiler for custom CUDA kernels
|
|
122
122
|
|
|
123
|
+
# ===========================================================================
|
|
124
|
+
# detectron2 - Facebook's detection library
|
|
125
|
+
# https://github.com/facebookresearch/detectron2
|
|
126
|
+
# Prebuilt wheels from miropsota's torch_packages_builder
|
|
127
|
+
# Version format: 0.6+<commit>pt<torch_version>cu<cuda_short>
|
|
128
|
+
# ===========================================================================
|
|
129
|
+
detectron2:
|
|
130
|
+
method: index
|
|
131
|
+
index_url: "https://miropsota.github.io/torch_packages_builder"
|
|
132
|
+
version_template: "0.6+2a420edpt{torch_version}cu{cuda_short}"
|
|
133
|
+
description: Detectron2 - Facebook's detection and segmentation library
|
|
134
|
+
|
|
123
135
|
# ===========================================================================
|
|
124
136
|
# flash-attn - Multi-source prebuilt wheels
|
|
125
137
|
# ===========================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.17
|
|
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
|
|
@@ -2,7 +2,7 @@ comfy_env/__init__.py,sha256=76gIAh7qFff_v_bAolXVzuWzcgvD3bp-yQGCNzba_Iw,3287
|
|
|
2
2
|
comfy_env/cli.py,sha256=q4y_tlPyqKMZhge7XeO9VdbFVZ4dl9LZsgnnTVQYXD4,15979
|
|
3
3
|
comfy_env/decorator.py,sha256=daFR5aLzshkmo5sRKhSGPcTUgIUWml7Gs6A1bfnDuyc,15718
|
|
4
4
|
comfy_env/errors.py,sha256=8hN8NDlo8oBUdapc-eT3ZluigI5VBzfqsSBvQdfWlz4,9943
|
|
5
|
-
comfy_env/install.py,sha256=
|
|
5
|
+
comfy_env/install.py,sha256=O4VRTvlqgO1FtA4dy5AivKMNcnBom4Tj7IbGG-rB20s,21074
|
|
6
6
|
comfy_env/registry.py,sha256=uFCtGmWYvwGCqObXgzmArX7o5JsFNsHXxayofk3m6no,2569
|
|
7
7
|
comfy_env/resolver.py,sha256=l-AnmCE1puG6CvdpDB-KrsfG_cn_3uO2DryYizUnG_4,12474
|
|
8
8
|
comfy_env/tools.py,sha256=mFNB_uq64ON5hlreH_0wTLONahDo3pBHxhQYTcTHxXE,6554
|
|
@@ -32,9 +32,9 @@ 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/wheel_sources.yml,sha256=
|
|
36
|
-
comfy_env-0.0.
|
|
37
|
-
comfy_env-0.0.
|
|
38
|
-
comfy_env-0.0.
|
|
39
|
-
comfy_env-0.0.
|
|
40
|
-
comfy_env-0.0.
|
|
35
|
+
comfy_env/wheel_sources.yml,sha256=nSZ8XB_I5JXQGB7AgC6lHs_IXMd9Kcno10artNL8BKw,7775
|
|
36
|
+
comfy_env-0.0.17.dist-info/METADATA,sha256=_TvGTWiI22-f_S9OkOxrpyXBafCrV59kmWWW-o4GoDw,5399
|
|
37
|
+
comfy_env-0.0.17.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
38
|
+
comfy_env-0.0.17.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
39
|
+
comfy_env-0.0.17.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
40
|
+
comfy_env-0.0.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|