comfy-env 0.0.34__py3-none-any.whl → 0.0.36__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 CHANGED
@@ -484,19 +484,31 @@ def _install_cuda_package(
484
484
  else:
485
485
  pkg_spec = f"{package}=={version}" if version else package
486
486
  log(f" Installing {package} (index)...")
487
- # Try to resolve exact wheel URL from index
488
- actual_version = resolved_version if "version_template" in config else version
489
- vars_dict = env.as_dict()
490
- wheel_url = resolve_wheel_from_index(index_url, package, vars_dict, actual_version)
491
- if wheel_url:
492
- # Install from resolved URL directly (guarantees we get what we resolved)
487
+
488
+ # Resolve version: use provided version, default_version, or None
489
+ effective_version = version if version and version != "*" else config.get("default_version")
490
+
491
+ # Check for wheel_template first (direct URL construction, no index parsing)
492
+ if "wheel_template" in config and effective_version:
493
+ vars_dict = env.as_dict()
494
+ vars_dict["version"] = effective_version
495
+ wheel_url = _substitute_template(config["wheel_template"], vars_dict)
493
496
  log(f" Wheel: {wheel_url}")
494
497
  _pip_install([wheel_url], no_deps=True, log=log)
495
498
  else:
496
- # Fallback to index-based resolution
497
- log(f" Index: {index_url}")
498
- log(f" Package: {pkg_spec}")
499
- _pip_install_with_index(pkg_spec, index_url, log)
499
+ # Try to resolve exact wheel URL from index
500
+ actual_version = resolved_version if "version_template" in config else version
501
+ vars_dict = env.as_dict()
502
+ wheel_url = resolve_wheel_from_index(index_url, package, vars_dict, actual_version)
503
+ if wheel_url:
504
+ # Install from resolved URL directly (guarantees we get what we resolved)
505
+ log(f" Wheel: {wheel_url}")
506
+ _pip_install([wheel_url], no_deps=True, log=log)
507
+ else:
508
+ raise InstallError(
509
+ f"Failed to resolve wheel URL for {package} from index {index_url}. "
510
+ "No matching wheel found and PyPI fallback is disabled.",
511
+ )
500
512
 
501
513
  elif method == "github_index":
502
514
  # GitHub Pages index - try to resolve exact wheel URL first
@@ -55,6 +55,8 @@ packages:
55
55
  pytorch3d:
56
56
  method: index
57
57
  index_url: "https://miropsota.github.io/torch_packages_builder/pytorch3d/"
58
+ wheel_template: "https://miropsota.github.io/torch_packages_builder/pytorch3d/pytorch3d-{version}%2Bpt{torch_version}cu{cuda_short}-{py_tag}-{py_tag}-{platform}.whl"
59
+ default_version: "0.7.9"
58
60
  description: PyTorch3D - 3D deep learning library
59
61
 
60
62
  # ===========================================================================
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.0.34
3
+ Version: 0.0.36
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
@@ -3,7 +3,7 @@ comfy_env/cli.py,sha256=X-GCQMP0mtMcE3ZgkT-VLQ4Gq3UUvcb_Ux_NClEFhgI,15975
3
3
  comfy_env/decorator.py,sha256=6JCKwLHaZtOLVDexs_gh_-NtS2ZK0V7nGCPqkyeYEAA,16688
4
4
  comfy_env/errors.py,sha256=8hN8NDlo8oBUdapc-eT3ZluigI5VBzfqsSBvQdfWlz4,9943
5
5
  comfy_env/index_resolver.py,sha256=D8BttTJ7BOiukUvmdT6_dGdzFV3CahGL2m28X-HwPeE,4650
6
- comfy_env/install.py,sha256=eS3Q8T9bFP4AH2PfqLmjqWA8cu8vJsg02aXBTP5x1IQ,30446
6
+ comfy_env/install.py,sha256=SeYcnvFErBpAvTMG1L02PMKt39yrD_9WHGiFfaJ_igA,31172
7
7
  comfy_env/nodes.py,sha256=CWUe35jU5SKk4ur-SddZePdqWgxJDlxGhpcJiu5pAK4,4354
8
8
  comfy_env/pixi.py,sha256=y25mUDhB3bCqhPMGF0h23Tf8ZHykK4gLJrkvOhsPWmE,14398
9
9
  comfy_env/registry.py,sha256=uFCtGmWYvwGCqObXgzmArX7o5JsFNsHXxayofk3m6no,2569
@@ -34,9 +34,9 @@ comfy_env/workers/pool.py,sha256=MtjeOWfvHSCockq8j1gfnxIl-t01GSB79T5N4YB82Lg,695
34
34
  comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
35
35
  comfy_env/workers/torch_mp.py,sha256=4YSNPn7hALrvMVbkO4RkTeFTcc0lhfLMk5QTWjY4PHw,22134
36
36
  comfy_env/workers/venv.py,sha256=_ekHfZPqBIPY08DjqiXm6cTBQH4DrbxRWR3AAv3mit8,31589
37
- comfy_env/wheel_sources.yml,sha256=ep7husItiWik_8wUaVG5j1ttAw4NhA2daFjm2UCR7lA,8808
38
- comfy_env-0.0.34.dist-info/METADATA,sha256=gOWb3KyliLVyLwp12wZBZb3JkeG8MTxetq3oRJnDmIM,5400
39
- comfy_env-0.0.34.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
40
- comfy_env-0.0.34.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
41
- comfy_env-0.0.34.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
42
- comfy_env-0.0.34.dist-info/RECORD,,
37
+ comfy_env/wheel_sources.yml,sha256=WHSSgbEXDKgRdJAi5FKiEU0l5dFxP_1p4JThc1bbqj8,9007
38
+ comfy_env-0.0.36.dist-info/METADATA,sha256=5Eyt-3TBXtZ_G4eVdCMe7FehkcTo7EPcSnn-Zfz8oqg,5400
39
+ comfy_env-0.0.36.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
40
+ comfy_env-0.0.36.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
41
+ comfy_env-0.0.36.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
42
+ comfy_env-0.0.36.dist-info/RECORD,,