comfy-env 0.1.6__py3-none-any.whl → 0.1.7__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/workers/mp.py CHANGED
@@ -80,7 +80,7 @@ def _dump_worker_env(worker_name: str = "unknown", print_to_terminal: bool = Fal
80
80
  print(f"[comfy-env] Python: {sys.executable}")
81
81
  print(f"[comfy-env] Version: {sys.version.split()[0]}")
82
82
  print(f"[comfy-env] PID: {os.getpid()}, CWD: {os.getcwd()}")
83
- for var in ['PATH', 'LD_LIBRARY_PATH', 'PYTHONPATH', 'OMP_NUM_THREADS', 'KMP_DUPLICATE_LIB_OK']:
83
+ for var in ['PATH', 'LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH', 'PYTHONPATH', 'OMP_NUM_THREADS', 'KMP_DUPLICATE_LIB_OK']:
84
84
  val = os.environ.get(var, '<unset>')
85
85
  if len(val) > 100:
86
86
  val = val[:100] + '...'
@@ -143,8 +143,18 @@ def _worker_loop(queue_in, queue_out, sys_path_additions=None, lib_path=None, en
143
143
  if lib_path:
144
144
  clean_parts.insert(0, lib_path)
145
145
  os.environ["PATH"] = path_sep.join(clean_parts)
146
+ elif sys.platform == "darwin":
147
+ # macOS: Use DYLD_LIBRARY_PATH
148
+ current = os.environ.get("DYLD_LIBRARY_PATH", "")
149
+ clean_parts = [
150
+ p for p in current.split(path_sep) if p
151
+ and not any(x in p.lower() for x in (".ct-envs", "conda", "mamba", "miniforge", "miniconda", "anaconda"))
152
+ ]
153
+ if lib_path:
154
+ clean_parts.insert(0, lib_path)
155
+ os.environ["DYLD_LIBRARY_PATH"] = path_sep.join(clean_parts)
146
156
  else:
147
- # Linux/Mac: Filter LD_LIBRARY_PATH with same patterns
157
+ # Linux: Use LD_LIBRARY_PATH
148
158
  current = os.environ.get("LD_LIBRARY_PATH", "")
149
159
  clean_parts = [
150
160
  p for p in current.split(path_sep) if p
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.1.6
3
+ Version: 0.1.7
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
@@ -22,11 +22,11 @@ comfy_env/templates/comfy-env-instructions.txt,sha256=ve1RAthW7ouumU9h6DM7mIRX1M
22
22
  comfy_env/templates/comfy-env.toml,sha256=ROIqi4BlPL1MEdL1VgebfTHpdwPNYGHwWeigI9Kw-1I,4831
23
23
  comfy_env/workers/__init__.py,sha256=TMVG55d2XLP1mJ3x1d16H0SBDJZtk2kMC5P4HLk9TrA,1073
24
24
  comfy_env/workers/base.py,sha256=4ZYTaQ4J0kBHCoO_OfZnsowm4rJCoqinZUaOtgkOPbw,2307
25
- comfy_env/workers/mp.py,sha256=xqSLnpR5zSVdZKt10nM6LmNyJ2SmlSr1yQ5I9HX5OJ4,29514
25
+ comfy_env/workers/mp.py,sha256=OeAMRMYM1-G3sNf42Ro4WWCHksmcWoZ5hhmgq1GDIEQ,29989
26
26
  comfy_env/workers/subprocess.py,sha256=UMhKhaJoSjv2-FWnwQq9TeMWtaDLIs3ajAFTq1ngdJw,57844
27
27
  comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
28
- comfy_env-0.1.6.dist-info/METADATA,sha256=IT7HN3q_Q7hdsZqcGRbgtoeKBTN6z_1Gzr8KhVtPpg0,6945
29
- comfy_env-0.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
30
- comfy_env-0.1.6.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
31
- comfy_env-0.1.6.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
32
- comfy_env-0.1.6.dist-info/RECORD,,
28
+ comfy_env-0.1.7.dist-info/METADATA,sha256=GcjJ1kWcjA5-JeH-zYpsckeHS2tKX0fufOUY6O20je8,6945
29
+ comfy_env-0.1.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
30
+ comfy_env-0.1.7.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
31
+ comfy_env-0.1.7.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
32
+ comfy_env-0.1.7.dist-info/RECORD,,