comfy-env 0.0.36__py3-none-any.whl → 0.0.38__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.
@@ -11,7 +11,7 @@ from pathlib import Path
11
11
  _comfyui_base = None
12
12
 
13
13
  def _find_comfyui_base():
14
- """Find ComfyUI base from COMFYUI_BASE env var or by walking up."""
14
+ """Find ComfyUI base from COMFYUI_BASE env var, child dirs, or by walking up."""
15
15
  global _comfyui_base
16
16
  if _comfyui_base:
17
17
  return _comfyui_base
@@ -21,8 +21,18 @@ def _find_comfyui_base():
21
21
  _comfyui_base = Path(os.environ["COMFYUI_BASE"])
22
22
  return _comfyui_base
23
23
 
24
+ # Check common child directories (for test environments)
25
+ # Also check parent's children (isolated venv is sibling to .comfy-test-env)
26
+ cwd = Path.cwd().resolve()
27
+ for base in [cwd, cwd.parent]:
28
+ for child in [".comfy-test-env/ComfyUI", "ComfyUI"]:
29
+ candidate = base / child
30
+ if (candidate / "main.py").exists() and (candidate / "comfy").exists():
31
+ _comfyui_base = candidate
32
+ return _comfyui_base
33
+
24
34
  # Walk up from cwd looking for ComfyUI
25
- current = Path.cwd().resolve()
35
+ current = cwd
26
36
  for _ in range(10):
27
37
  if (current / "main.py").exists() and (current / "comfy").exists():
28
38
  _comfyui_base = current
@@ -49,13 +49,13 @@ packages:
49
49
  description: Spline convolutions for PyTorch
50
50
 
51
51
  # ===========================================================================
52
- # pytorch3d - MiroPsota's torch_packages_builder
53
- # https://github.com/MiroPsota/torch_packages_builder
52
+ # pytorch3d - PyTorch3D 3D deep learning library
53
+ # https://pozzettiandrea.github.io/cuda-wheels
54
54
  # ===========================================================================
55
55
  pytorch3d:
56
56
  method: index
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"
57
+ index_url: "https://pozzettiandrea.github.io/cuda-wheels"
58
+ wheel_template: "https://pozzettiandrea.github.io/cuda-wheels/pytorch3d/pytorch3d-{version}%2Bcu{cuda_short}torch{torch_mm}-{py_tag}-{py_tag}-{platform}.whl"
59
59
  default_version: "0.7.9"
60
60
  description: PyTorch3D - 3D deep learning library
61
61
 
@@ -76,6 +76,11 @@ packages:
76
76
  wheel_template: "https://pozzettiandrea.github.io/cuda-wheels/cumesh/cumesh-{version}%2Bcu{cuda_short}torch{torch_mm}-{py_tag}-{py_tag}-{platform}.whl"
77
77
  description: CUDA-accelerated mesh utilities
78
78
 
79
+ cubvh:
80
+ method: index
81
+ index_url: "https://pozzettiandrea.github.io/cuda-wheels"
82
+ description: CUDA BVH acceleration for mesh operations and marching cubes
83
+
79
84
  o_voxel:
80
85
  method: index
81
86
  index_url: "https://pozzettiandrea.github.io/cuda-wheels"
comfy_env/workers/venv.py CHANGED
@@ -594,7 +594,16 @@ class PersistentVenvWorker(Worker):
594
594
  self._worker_script.write_text(_PERSISTENT_WORKER_SCRIPT)
595
595
 
596
596
  def _find_comfyui_base(self) -> Optional[Path]:
597
- """Find ComfyUI base directory by walking up from working_dir."""
597
+ """Find ComfyUI base directory."""
598
+ # Check common child directories (for test environments)
599
+ # Also check parent's children (isolated venv is sibling to .comfy-test-env)
600
+ for base in [self.working_dir, self.working_dir.parent]:
601
+ for child in [".comfy-test-env/ComfyUI", "ComfyUI"]:
602
+ candidate = base / child
603
+ if (candidate / "main.py").exists() and (candidate / "comfy").exists():
604
+ return candidate
605
+
606
+ # Walk up from working_dir (standard ComfyUI custom_nodes layout)
598
607
  current = self.working_dir.resolve()
599
608
  for _ in range(10):
600
609
  if (current / "main.py").exists() and (current / "comfy").exists():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.0.36
3
+ Version: 0.0.38
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
@@ -27,16 +27,16 @@ comfy_env/ipc/torch_bridge.py,sha256=WzdwDJa3N_1fEl9OeZxikvMbwryO5P63o0WmEDpS18A
27
27
  comfy_env/ipc/transport.py,sha256=XQlRcfQsd4nd909KIYnZKvsS3ksGpGjyVucn8jvmLIU,9698
28
28
  comfy_env/ipc/worker.py,sha256=oxTLF9xXrl8CRx_JVNBdkxZh35NuzfkdxhaUtUuXogs,6661
29
29
  comfy_env/stubs/__init__.py,sha256=jMeWEKY30y8QqYX9AUyuZbmm607erQTc4N7YaDoAH00,38
30
- comfy_env/stubs/folder_paths.py,sha256=Pv30qHeHBmfK5icIpmXnTGvZkRMJHDrTh9mQ1WMclLg,1713
30
+ comfy_env/stubs/folder_paths.py,sha256=K90J34EG6LD4eZP8YG-xMeBmqwpp_wA8E92DKMXd1GQ,2189
31
31
  comfy_env/workers/__init__.py,sha256=IKZwOvrWOGqBLDUIFAalg4CdqzJ_YnAdxo2Ha7gZTJ0,1467
32
32
  comfy_env/workers/base.py,sha256=ZILYXlvGCWuCZXmjKqfG8VeD19ihdYaASdlbasl2BMo,2312
33
33
  comfy_env/workers/pool.py,sha256=MtjeOWfvHSCockq8j1gfnxIl-t01GSB79T5N4YB82Lg,6956
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
- comfy_env/workers/venv.py,sha256=_ekHfZPqBIPY08DjqiXm6cTBQH4DrbxRWR3AAv3mit8,31589
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,,
36
+ comfy_env/workers/venv.py,sha256=PmsVOu5i89tBYkGRupo2bjOLPBmk06q4GNUwDWsd9F8,32088
37
+ comfy_env/wheel_sources.yml,sha256=IEyi3JnySo4sXTRkYR0VjtCdXaCsF5Q5c0nU0S9LC8I,9143
38
+ comfy_env-0.0.38.dist-info/METADATA,sha256=b4acRmCB85Sb7Yh8fUH4K7rFAGTz1Ehh6vbwgvwCln4,5400
39
+ comfy_env-0.0.38.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
40
+ comfy_env-0.0.38.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
41
+ comfy_env-0.0.38.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
42
+ comfy_env-0.0.38.dist-info/RECORD,,