comfy-env 0.0.58__py3-none-any.whl → 0.0.59__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/env/config.py CHANGED
@@ -156,6 +156,8 @@ class IsolatedEnv:
156
156
  conda: Optional["CondaConfig"] = None
157
157
  # Runtime isolation - run node FUNCTION methods in isolated subprocess
158
158
  isolated: bool = False
159
+ # Environment variables for install (e.g., CMAKE_ARGS for build flags)
160
+ env_vars: Dict[str, str] = field(default_factory=dict)
159
161
 
160
162
  def __post_init__(self):
161
163
  """Validate and normalize configuration."""
@@ -575,6 +575,13 @@ def _parse_single_env(name: str, env_data: Dict[str, Any], base_dir: Path) -> Is
575
575
  # Parse isolated flag for runtime process isolation
576
576
  isolated = env_data.get("isolated", False)
577
577
 
578
+ # Parse environment variables section [envname.env]
579
+ env_vars = {}
580
+ env_section = env_data.get("env", {})
581
+ if isinstance(env_section, dict):
582
+ # Filter to only string/numeric values (avoid nested tables like cuda/packages)
583
+ env_vars = {k: str(v) for k, v in env_section.items() if isinstance(v, (str, int, float))}
584
+
578
585
  return IsolatedEnv(
579
586
  name=name,
580
587
  python=python,
@@ -587,6 +594,7 @@ def _parse_single_env(name: str, env_data: Dict[str, Any], base_dir: Path) -> Is
587
594
  darwin_requirements=darwin_reqs,
588
595
  conda=conda_config,
589
596
  isolated=isolated,
597
+ env_vars=env_vars,
590
598
  )
591
599
 
592
600
 
comfy_env/pixi.py CHANGED
@@ -575,11 +575,19 @@ def pixi_install(
575
575
 
576
576
  # Run pixi install
577
577
  log("Running pixi install...")
578
+
579
+ # Build environment with custom vars from config
580
+ install_env = os.environ.copy()
581
+ if env_config.env_vars:
582
+ install_env.update(env_config.env_vars)
583
+ log(f" Using custom env vars: {list(env_config.env_vars.keys())}")
584
+
578
585
  result = subprocess.run(
579
586
  [str(pixi_path), "install"],
580
587
  cwd=node_dir,
581
588
  capture_output=True,
582
589
  text=True,
590
+ env=install_env,
583
591
  )
584
592
 
585
593
  if result.returncode != 0:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.0.58
3
+ Version: 0.0.59
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
@@ -5,13 +5,13 @@ comfy_env/errors.py,sha256=q-C3vyrPa_kk_Ao8l17mIGfJiG2IR0hCFV0GFcNLmcI,9924
5
5
  comfy_env/install.py,sha256=nfzGifXVd87a6dnwY3GtktrXpS7fjWuWF-QV9hh2e94,15657
6
6
  comfy_env/isolation.py,sha256=a-q6mA9tzD27kZSZCTioSKlK-3kpRFKYA23V_75OmaI,9286
7
7
  comfy_env/nodes.py,sha256=CWUe35jU5SKk4ur-SddZePdqWgxJDlxGhpcJiu5pAK4,4354
8
- comfy_env/pixi.py,sha256=HGskOijFReaJhgEuPr8I6t3Ihp7GBhFvfJB2qh1cm6c,25412
8
+ comfy_env/pixi.py,sha256=47l0UjEPd-VfFgagu7iH1LsMcWrCXtZSXYW0Mfm8-4I,25688
9
9
  comfy_env/registry.py,sha256=w-QwvAPFlCrBYRAv4cXkp2zujQPZn8Fk5DUxKCtox8o,3430
10
10
  comfy_env/resolver.py,sha256=WoNIo2IfTR2RlEf_HQl66eAeMa2R2pmLof_UdK-0RNE,6714
11
11
  comfy_env/stub_imports.py,sha256=qOYxCJ8BbIfMHGBfqC5KGZSK6AK-iqmSjWi8ZCP8SAM,8425
12
12
  comfy_env/env/__init__.py,sha256=imQdoQEQvrRT-QDtyNpFlkVbm2fBzgACdpQwRPd09fI,1157
13
- comfy_env/env/config.py,sha256=cRSuWiVZGSK9xpvyNIyMirlHyfTm6_AB_eXzeKyvfnc,7749
14
- comfy_env/env/config_file.py,sha256=g6fZq6XbTUXx97meWW_7xfKcuC0sN002c7fBvR0eCOg,24819
13
+ comfy_env/env/config.py,sha256=maqlrO5O7hY642R0as0Y99rvBsAU_weRXfPpWnNVq80,7885
14
+ comfy_env/env/config_file.py,sha256=gM0Rd8No0Fiwp1aYHArF9pZ5G6xVjH1-5CVEKsiUX3E,25196
15
15
  comfy_env/env/cuda_gpu_detection.py,sha256=sqB3LjvGNdV4eFqiARQGfyecBM3ZiUmeh6nG0YCRYQw,9751
16
16
  comfy_env/env/manager.py,sha256=-qdbZDsbNfs70onVbC7mhKCzNsxYx3WmG7ttlBinhGI,23659
17
17
  comfy_env/env/security.py,sha256=dNSitAnfBNVdvxgBBntYw33AJaCs_S1MHb7KJhAVYzM,8171
@@ -41,8 +41,8 @@ comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaF
41
41
  comfy_env/workers/torch_mp.py,sha256=TnsCoBHEJBXEoBkx7WiCd9tBAlzFtMOw1dk_7_zGJZY,22288
42
42
  comfy_env/workers/venv.py,sha256=RIW1EzWHnC4EBvfQCduYf2BVp3fND3SUZC1yJVfscxI,59325
43
43
  comfy_env/wheel_sources.yml,sha256=uU0YJmWaiLAicQNN9VYS8PZevlP2NOH6mBUE294dvAo,8156
44
- comfy_env-0.0.58.dist-info/METADATA,sha256=hCASO6gaw9T4ucjoN_PJkhdyJjEx2Na0EEvNEC-1iCI,8735
45
- comfy_env-0.0.58.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
46
- comfy_env-0.0.58.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
47
- comfy_env-0.0.58.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
48
- comfy_env-0.0.58.dist-info/RECORD,,
44
+ comfy_env-0.0.59.dist-info/METADATA,sha256=xjGBgAtpS7ybnE5cgUy2MpNv6BwmQmhiEd42MF7Bquo,8735
45
+ comfy_env-0.0.59.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
46
+ comfy_env-0.0.59.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
47
+ comfy_env-0.0.59.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
48
+ comfy_env-0.0.59.dist-info/RECORD,,