comfy-env 0.0.3__py3-none-any.whl → 0.0.5__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/__init__.py CHANGED
@@ -40,7 +40,7 @@ This package provides:
40
40
  The @isolated decorator and WorkerBridge are still available.
41
41
  """
42
42
 
43
- __version__ = "0.0.3"
43
+ __version__ = "0.0.5"
44
44
 
45
45
  from .env.config import IsolatedEnv, EnvManagerConfig, LocalConfig, NodeReq
46
46
  from .env.config_file import (
comfy_env/env/manager.py CHANGED
@@ -73,10 +73,29 @@ class IsolatedEnvManager:
73
73
  raise RuntimeError(f"Platform incompatible: {error}")
74
74
 
75
75
  def _find_uv(self) -> Optional[Path]:
76
- """Find uv executable."""
76
+ """Find uv executable in PATH or current Python environment."""
77
+ # First check system PATH
77
78
  uv_path = shutil.which("uv")
78
79
  if uv_path:
79
80
  return Path(uv_path)
81
+
82
+ # Check current Python environment's Scripts/bin folder
83
+ import sys
84
+ if sys.platform == "win32":
85
+ candidates = [
86
+ Path(sys.prefix) / "Scripts" / "uv.exe",
87
+ Path(sys.base_prefix) / "Scripts" / "uv.exe",
88
+ ]
89
+ else:
90
+ candidates = [
91
+ Path(sys.prefix) / "bin" / "uv",
92
+ Path(sys.base_prefix) / "bin" / "uv",
93
+ ]
94
+
95
+ for candidate in candidates:
96
+ if candidate.exists():
97
+ return candidate
98
+
80
99
  return None
81
100
 
82
101
  def _run_uv(self, args: list, env_dir: Optional[Path] = None, **kwargs) -> subprocess.CompletedProcess:
@@ -417,7 +436,15 @@ class IsolatedEnvManager:
417
436
  ) -> None:
418
437
  """Install package from GitHub release wheels with fallback sources."""
419
438
  import platform as plat
420
- current_platform = f"{plat.system().lower()}_{plat.machine().lower()}"
439
+ import sys
440
+ # Use consistent platform tags (win_amd64, linux_x86_64, etc.)
441
+ if sys.platform == 'win32':
442
+ machine = plat.machine().lower()
443
+ current_platform = 'win_amd64' if machine in ('amd64', 'x86_64') else f'win_{machine}'
444
+ elif sys.platform == 'darwin':
445
+ current_platform = f"macosx_{plat.machine()}"
446
+ else:
447
+ current_platform = f"linux_{plat.machine()}"
421
448
 
422
449
  sources = config.get("sources", [])
423
450
  errors = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: comfy-env
3
- Version: 0.0.3
3
+ Version: 0.0.5
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
@@ -1,4 +1,4 @@
1
- comfy_env/__init__.py,sha256=uxbJpoGZ47b38I-rD_L4ElutFzrtbMJxudfhI1CqZLA,4249
1
+ comfy_env/__init__.py,sha256=UGvb4JHad9J4eoLxvmhSQO_NZAoWujM4o_odm7hRp-0,4249
2
2
  comfy_env/cli.py,sha256=9GvQYrXlJRl0ZaCuFHvRtVxWQ34Axd5Brgu5FWRONp4,11424
3
3
  comfy_env/decorator.py,sha256=daFR5aLzshkmo5sRKhSGPcTUgIUWml7Gs6A1bfnDuyc,15718
4
4
  comfy_env/errors.py,sha256=egeyXY-j7KpxyA0s67TcJLEfJX23LCAD3v1P4FgQIGE,10917
@@ -10,7 +10,7 @@ comfy_env/env/__init__.py,sha256=sybOBrxJCfL4Xry9NNd5xwn9hXIHudXlXDa7SpJkPCE,811
10
10
  comfy_env/env/config.py,sha256=fL2P0ScoioPktZEHQnoo1dy-VB5intJEYLHm5fuOmF8,5406
11
11
  comfy_env/env/config_file.py,sha256=QLf3WPCqx46v1kVzM4jV_QAz919zmkk0_FRtLD3jO8s,19507
12
12
  comfy_env/env/detection.py,sha256=Co8BJmTRCq1ZHDsm6832jF87za0GRAhH7zF04-5QwcE,4949
13
- comfy_env/env/manager.py,sha256=ksx_7Kitrj4TUL7216QzzzjpZEveXvrJ0sAkMpb3-ck,21234
13
+ comfy_env/env/manager.py,sha256=nex-V0NMFQuaf0PhSMksqkTbxONalE852RnYMTorzLM,22237
14
14
  comfy_env/env/security.py,sha256=dNSitAnfBNVdvxgBBntYw33AJaCs_S1MHb7KJhAVYzM,8171
15
15
  comfy_env/env/platform/__init__.py,sha256=Nb5MPZIEeanSMEWwqU4p4bnEKTJn1tWcwobnhq9x9IY,614
16
16
  comfy_env/env/platform/base.py,sha256=iS0ptTTVjXRwPU4qWUdvHI7jteuzxGSjWr5BUQ7hGiU,2453
@@ -32,8 +32,8 @@ comfy_env/workers/pool.py,sha256=MtjeOWfvHSCockq8j1gfnxIl-t01GSB79T5N4YB82Lg,695
32
32
  comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaFLLq8,6409
33
33
  comfy_env/workers/torch_mp.py,sha256=DsfxE3LBAWEuGtk-p-YL0UhVQ7VDh73KT_TFRxYN4-Q,12563
34
34
  comfy_env/workers/venv.py,sha256=aVaNKUbaAyVw0tHalcAfJuwN-_LVnS8Uc0z0XuBpX8E,28559
35
- comfy_env-0.0.3.dist-info/METADATA,sha256=O1VKibTQKlE5p52JsMB7Gyg3YX-fjdkQIYF_1E2VXZ8,5371
36
- comfy_env-0.0.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
37
- comfy_env-0.0.3.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
38
- comfy_env-0.0.3.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
39
- comfy_env-0.0.3.dist-info/RECORD,,
35
+ comfy_env-0.0.5.dist-info/METADATA,sha256=xTxW8wv6MGER1ky5uMIOP5ksdqu3kPk8Z1YrdN1_Wrg,5371
36
+ comfy_env-0.0.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
37
+ comfy_env-0.0.5.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
38
+ comfy_env-0.0.5.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
39
+ comfy_env-0.0.5.dist-info/RECORD,,