comfy-env 0.0.3__py3-none-any.whl → 0.0.4__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 +1 -1
- comfy_env/env/manager.py +20 -1
- {comfy_env-0.0.3.dist-info → comfy_env-0.0.4.dist-info}/METADATA +1 -1
- {comfy_env-0.0.3.dist-info → comfy_env-0.0.4.dist-info}/RECORD +7 -7
- {comfy_env-0.0.3.dist-info → comfy_env-0.0.4.dist-info}/WHEEL +0 -0
- {comfy_env-0.0.3.dist-info → comfy_env-0.0.4.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.0.3.dist-info → comfy_env-0.0.4.dist-info}/licenses/LICENSE +0 -0
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.
|
|
43
|
+
__version__ = "0.0.4"
|
|
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:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
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=
|
|
1
|
+
comfy_env/__init__.py,sha256=CRVwbkJp7wCNffGwaRB3FK0IATHlAZA38hQQkwQFRzs,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=
|
|
13
|
+
comfy_env/env/manager.py,sha256=pWeVIv1tFLFOFcP6qr6fnKmBZ6t1gEmQFlSEOgRNLHQ,21870
|
|
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.
|
|
36
|
-
comfy_env-0.0.
|
|
37
|
-
comfy_env-0.0.
|
|
38
|
-
comfy_env-0.0.
|
|
39
|
-
comfy_env-0.0.
|
|
35
|
+
comfy_env-0.0.4.dist-info/METADATA,sha256=FCDy9qIIl33_JyuChW0PU-KB0bpZZEGd2mrruKfR7hE,5371
|
|
36
|
+
comfy_env-0.0.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
37
|
+
comfy_env-0.0.4.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
38
|
+
comfy_env-0.0.4.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
39
|
+
comfy_env-0.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|