comfy-env 0.1.22__py3-none-any.whl → 0.1.24__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/install.py +3 -1
- comfy_env/packages/apt.py +46 -8
- {comfy_env-0.1.22.dist-info → comfy_env-0.1.24.dist-info}/METADATA +1 -1
- {comfy_env-0.1.22.dist-info → comfy_env-0.1.24.dist-info}/RECORD +7 -7
- {comfy_env-0.1.22.dist-info → comfy_env-0.1.24.dist-info}/WHEEL +0 -0
- {comfy_env-0.1.22.dist-info → comfy_env-0.1.24.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.1.22.dist-info → comfy_env-0.1.24.dist-info}/licenses/LICENSE +0 -0
comfy_env/install.py
CHANGED
|
@@ -59,7 +59,9 @@ def _install_apt_packages(packages: List[str], log: Callable[[str], None], dry_r
|
|
|
59
59
|
return
|
|
60
60
|
log(f"\n[apt] Installing: {', '.join(packages)}")
|
|
61
61
|
if not dry_run:
|
|
62
|
-
apt_install(packages, log)
|
|
62
|
+
success = apt_install(packages, log)
|
|
63
|
+
if not success:
|
|
64
|
+
log("[apt] WARNING: Some apt packages failed to install. This may cause issues.")
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
def _set_persistent_env_vars(env_vars: dict, log: Callable[[str], None], dry_run: bool) -> None:
|
comfy_env/packages/apt.py
CHANGED
|
@@ -10,19 +10,57 @@ def apt_install(packages: List[str], log: Callable[[str], None] = print) -> bool
|
|
|
10
10
|
if not packages or sys.platform != "linux":
|
|
11
11
|
return True
|
|
12
12
|
|
|
13
|
-
log(f"
|
|
13
|
+
log(f"[apt] Requested packages: {packages}")
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
# Check which packages are missing
|
|
16
|
+
missing = check_apt_packages(packages)
|
|
17
|
+
if not missing:
|
|
18
|
+
log("[apt] All packages already installed")
|
|
19
|
+
return True
|
|
20
|
+
|
|
21
|
+
log(f"[apt] Missing packages: {missing}")
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
# Run apt-get update with full output
|
|
24
|
+
log("[apt] Running: sudo apt-get update")
|
|
25
|
+
update_result = subprocess.run(
|
|
26
|
+
["sudo", "apt-get", "update"],
|
|
19
27
|
capture_output=True, text=True
|
|
20
28
|
)
|
|
21
|
-
if
|
|
22
|
-
log(f"
|
|
23
|
-
|
|
29
|
+
if update_result.returncode != 0:
|
|
30
|
+
log(f"[apt] WARNING: apt-get update failed (exit {update_result.returncode})")
|
|
31
|
+
log(f"[apt] stderr: {update_result.stderr}")
|
|
32
|
+
else:
|
|
33
|
+
log("[apt] apt-get update succeeded")
|
|
34
|
+
|
|
35
|
+
# Install packages ONE BY ONE so one failure doesn't block others
|
|
36
|
+
installed = []
|
|
37
|
+
failed = []
|
|
38
|
+
for pkg in missing:
|
|
39
|
+
log(f"[apt] Installing: {pkg}")
|
|
40
|
+
result = subprocess.run(
|
|
41
|
+
["sudo", "apt-get", "install", "-y", pkg],
|
|
42
|
+
capture_output=True, text=True
|
|
43
|
+
)
|
|
44
|
+
if result.returncode != 0:
|
|
45
|
+
log(f"[apt] FAILED: {pkg} - {result.stderr.strip()}")
|
|
46
|
+
failed.append(pkg)
|
|
47
|
+
else:
|
|
48
|
+
log(f"[apt] OK: {pkg}")
|
|
49
|
+
installed.append(pkg)
|
|
50
|
+
|
|
51
|
+
# Summary
|
|
52
|
+
if installed:
|
|
53
|
+
log(f"[apt] Successfully installed: {installed}")
|
|
54
|
+
if failed:
|
|
55
|
+
log(f"[apt] Failed to install: {failed}")
|
|
56
|
+
|
|
57
|
+
# Verify what's actually installed now
|
|
58
|
+
still_missing = check_apt_packages(packages)
|
|
59
|
+
if still_missing:
|
|
60
|
+
log(f"[apt] WARNING: These packages are not available: {still_missing}")
|
|
24
61
|
|
|
25
|
-
|
|
62
|
+
# Return True if we installed at least something (partial success is OK)
|
|
63
|
+
return len(installed) > 0 or len(missing) == len(failed)
|
|
26
64
|
|
|
27
65
|
|
|
28
66
|
def check_apt_packages(packages: List[str]) -> List[str]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.24
|
|
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,6 +1,6 @@
|
|
|
1
1
|
comfy_env/__init__.py,sha256=xm2aZVHfUct136_yGkO-Z0IHH5g8-MMMzJPvgWZxSYg,4634
|
|
2
2
|
comfy_env/cli.py,sha256=yO5BvNhZgRy59QVv6b0a0kzxG44BCcg9GYh0qMRbuvc,8134
|
|
3
|
-
comfy_env/install.py,sha256=
|
|
3
|
+
comfy_env/install.py,sha256=kgc9v4d9ZNwzPLQx9uZn6xCqktqOkI-QYpkJN6CGjMk,11024
|
|
4
4
|
comfy_env/config/__init__.py,sha256=QlxIc5Hdghje6cm4FutReMO6fQK5rBu-zr36V2fjcLE,474
|
|
5
5
|
comfy_env/config/parser.py,sha256=bNSy8Jn4VZg3xw8pldlkEyGaaI_BmNsUEYQz-hKiXgE,2221
|
|
6
6
|
comfy_env/config/types.py,sha256=vFgWeEl_p26OmcoUv0wAOlHe9GBio2isjIWl7kACKFY,1096
|
|
@@ -21,15 +21,15 @@ comfy_env/isolation/workers/__init__.py,sha256=rmfSuH03_BbFFy0TSBTBL9UthhzP69o3O
|
|
|
21
21
|
comfy_env/isolation/workers/base.py,sha256=feRCKtjVtTVh1r3efZJ1cJ3rH9D1xKBCbbwLlckcBJk,2348
|
|
22
22
|
comfy_env/isolation/workers/subprocess.py,sha256=mvhuc2kvt3g3FP_moLHJ407IkOoZrGn-pmyk7PL95FU,64609
|
|
23
23
|
comfy_env/packages/__init__.py,sha256=4pRCUnfcVFVgy7hkbPz9BPVXELtSFHha6L7n-hqNuZA,1155
|
|
24
|
-
comfy_env/packages/apt.py,sha256=
|
|
24
|
+
comfy_env/packages/apt.py,sha256=FOQ4c7cKhu3W3K3LEreLxLIQ4QEHR1sPMVMZ1rsE2mo,2356
|
|
25
25
|
comfy_env/packages/cuda_wheels.py,sha256=G_CnlwNcfeWlEU24aCVBpeqQQ05y8_02dDLBwBFNwII,3980
|
|
26
26
|
comfy_env/packages/node_dependencies.py,sha256=AX_CY6j43tTY5KhyPfU7Wz6zgLAfWF0o0JkTrcNSecg,2966
|
|
27
27
|
comfy_env/packages/pixi.py,sha256=RPu8x5sSOLE1CYAhWMMjoQrbFGGt00fdsbqtRcTz7LQ,3871
|
|
28
28
|
comfy_env/packages/toml_generator.py,sha256=Vhc8F9euHhMTwH1TV6t96-D9Pjrn9jIN4e9WXrCIFE8,3414
|
|
29
29
|
comfy_env/templates/comfy-env-instructions.txt,sha256=ve1RAthW7ouumU9h6DM7mIRX1MS8_Tyonq2U4tcrFu8,1031
|
|
30
30
|
comfy_env/templates/comfy-env.toml,sha256=ROIqi4BlPL1MEdL1VgebfTHpdwPNYGHwWeigI9Kw-1I,4831
|
|
31
|
-
comfy_env-0.1.
|
|
32
|
-
comfy_env-0.1.
|
|
33
|
-
comfy_env-0.1.
|
|
34
|
-
comfy_env-0.1.
|
|
35
|
-
comfy_env-0.1.
|
|
31
|
+
comfy_env-0.1.24.dist-info/METADATA,sha256=GV7xn4YMh6Vl5EC_9VVbZ2KJYgrt6yViy9PrnyfS_fg,4829
|
|
32
|
+
comfy_env-0.1.24.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
33
|
+
comfy_env-0.1.24.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
34
|
+
comfy_env-0.1.24.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
35
|
+
comfy_env-0.1.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|