comfy-env 0.1.11__py3-none-any.whl → 0.1.12__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/nodes.py CHANGED
@@ -10,6 +10,7 @@ Example configuration:
10
10
  ComfyUI-DepthAnythingV2 = "kijai/ComfyUI-DepthAnythingV2"
11
11
  """
12
12
 
13
+ import shutil
13
14
  import subprocess
14
15
  import sys
15
16
  from pathlib import Path
@@ -84,16 +85,20 @@ def install_requirements(
84
85
  """
85
86
  requirements_file = node_dir / "requirements.txt"
86
87
 
87
- if requirements_file.exists():
88
- log(f" Installing requirements for {node_dir.name}...")
89
- result = subprocess.run(
90
- ["uv", "pip", "install", "-r", str(requirements_file), "--python", sys.executable],
91
- cwd=node_dir,
92
- capture_output=True,
93
- text=True,
94
- )
95
- if result.returncode != 0:
96
- log(f" Warning: requirements.txt install failed for {node_dir.name}: {result.stderr.strip()[:200]}")
88
+ if not requirements_file.exists():
89
+ return
90
+
91
+ log(f" Installing requirements for {node_dir.name}...")
92
+
93
+ # Try uv first, fall back to pip if uv not in PATH
94
+ if shutil.which("uv"):
95
+ cmd = ["uv", "pip", "install", "-r", str(requirements_file), "--python", sys.executable]
96
+ else:
97
+ cmd = [sys.executable, "-m", "pip", "install", "-r", str(requirements_file)]
98
+
99
+ result = subprocess.run(cmd, cwd=node_dir, capture_output=True, text=True)
100
+ if result.returncode != 0:
101
+ log(f" Warning: requirements.txt install failed for {node_dir.name}: {result.stderr.strip()[:200]}")
97
102
 
98
103
 
99
104
  def run_install_script(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.1.11
3
+ Version: 0.1.12
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=s0RkyKsBlDiSI4ZSwivtWLvYhc8DS0CUEWgFLVJbtLA,2176
2
2
  comfy_env/cli.py,sha256=ty4HYlzollCUCS0o6Sha6eczPAsW_gHRVgvck3IfA2w,12723
3
3
  comfy_env/errors.py,sha256=q-C3vyrPa_kk_Ao8l17mIGfJiG2IR0hCFV0GFcNLmcI,9924
4
4
  comfy_env/install.py,sha256=N7eBj8wB2DrGepVYk-Hks2mSf6UuGzj34pfVLNYJgQ4,10357
5
- comfy_env/nodes.py,sha256=nR-LctovXYTqk-seHovq9W_Ll0hlLeGMw-SQsa6IkBM,5235
5
+ comfy_env/nodes.py,sha256=tUbsUdjnJCUUoxM7NpsdUuawuIz1exfOmWdsLGILXiY,5391
6
6
  comfy_env/prestartup.py,sha256=aKuW07R0CmoeIXukENJZnGMPzCv7kU7azvHgIOt2usk,5813
7
7
  comfy_env/config/__init__.py,sha256=4Guylkb-FV8QxhFwschzpzbr2eu8y-KNgNT3_JOm9jc,403
8
8
  comfy_env/config/parser.py,sha256=dA1lX5ExBEfCqUJwe4V5i_jn2NJ69bMq3c3ji3lMSV8,4295
@@ -25,8 +25,8 @@ comfy_env/workers/base.py,sha256=4ZYTaQ4J0kBHCoO_OfZnsowm4rJCoqinZUaOtgkOPbw,230
25
25
  comfy_env/workers/mp.py,sha256=vsxDGWepmSNgfqBhZPW7h8yOiKEyQcDFYP09masLTV4,32337
26
26
  comfy_env/workers/subprocess.py,sha256=bNwHpgz_EIIwZVRlgsx_ZEowYRrWbp-8uUIboacc-7M,57136
27
27
  comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
28
- comfy_env-0.1.11.dist-info/METADATA,sha256=lqJAy8ibQELhvALr-YajG4e2NG2y-ApYXW5X58PWqXY,6971
29
- comfy_env-0.1.11.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
30
- comfy_env-0.1.11.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
31
- comfy_env-0.1.11.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
32
- comfy_env-0.1.11.dist-info/RECORD,,
28
+ comfy_env-0.1.12.dist-info/METADATA,sha256=J41pwCOTdj_2zckDDKjse-HfGWErDaDX3Hire4lKwgM,6971
29
+ comfy_env-0.1.12.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
30
+ comfy_env-0.1.12.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
31
+ comfy_env-0.1.12.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
32
+ comfy_env-0.1.12.dist-info/RECORD,,