comfy-env 0.0.69__tar.gz → 0.0.70__tar.gz
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-0.0.69 → comfy_env-0.0.70}/PKG-INFO +1 -1
- {comfy_env-0.0.69 → comfy_env-0.0.70}/pyproject.toml +1 -1
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/config/parser.py +6 -1
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/config/types.py +3 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/core.py +5 -12
- {comfy_env-0.0.69 → comfy_env-0.0.70}/.github/workflows/publish.yml +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/.gitignore +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/LICENSE +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/README.md +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/cli.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/config/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/errors.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/install.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/isolation/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/isolation/wrap.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/nodes.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/cuda_detection.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/platform/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/platform/base.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/platform/darwin.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/platform/linux.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/platform/windows.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/pixi/resolver.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/prestartup.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/templates/comfy-env-instructions.txt +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/templates/comfy-env.toml +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/workers/__init__.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/workers/base.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/workers/mp.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/workers/subprocess.py +0 -0
- {comfy_env-0.0.69 → comfy_env-0.0.70}/src/comfy_env/workers/tensor_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.70
|
|
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
|
|
@@ -49,7 +49,7 @@ from .types import ComfyEnvConfig, NodeReq
|
|
|
49
49
|
CONFIG_FILE_NAME = "comfy-env.toml"
|
|
50
50
|
|
|
51
51
|
# Sections we handle specially (not passed through to pixi.toml)
|
|
52
|
-
CUSTOM_SECTIONS = {"python", "cuda", "node_reqs"}
|
|
52
|
+
CUSTOM_SECTIONS = {"python", "cuda", "node_reqs", "apt"}
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
def load_config(path: Path) -> ComfyEnvConfig:
|
|
@@ -116,6 +116,10 @@ def _parse_config(data: Dict[str, Any]) -> ComfyEnvConfig:
|
|
|
116
116
|
cuda_data = data.pop("cuda", {})
|
|
117
117
|
cuda_packages = _ensure_list(cuda_data.get("packages", []))
|
|
118
118
|
|
|
119
|
+
# Extract [apt] section
|
|
120
|
+
apt_data = data.pop("apt", {})
|
|
121
|
+
apt_packages = _ensure_list(apt_data.get("packages", []))
|
|
122
|
+
|
|
119
123
|
# Extract [node_reqs] section
|
|
120
124
|
node_reqs_data = data.pop("node_reqs", {})
|
|
121
125
|
node_reqs = _parse_node_reqs(node_reqs_data)
|
|
@@ -126,6 +130,7 @@ def _parse_config(data: Dict[str, Any]) -> ComfyEnvConfig:
|
|
|
126
130
|
return ComfyEnvConfig(
|
|
127
131
|
python=python_version,
|
|
128
132
|
cuda_packages=cuda_packages,
|
|
133
|
+
apt_packages=apt_packages,
|
|
129
134
|
node_reqs=node_reqs,
|
|
130
135
|
pixi_passthrough=pixi_passthrough,
|
|
131
136
|
)
|
|
@@ -53,6 +53,9 @@ class ComfyEnvConfig:
|
|
|
53
53
|
# [cuda] - CUDA packages (installed via find-links index)
|
|
54
54
|
cuda_packages: List[str] = field(default_factory=list)
|
|
55
55
|
|
|
56
|
+
# [apt] - System packages to install via apt (Linux only)
|
|
57
|
+
apt_packages: List[str] = field(default_factory=list)
|
|
58
|
+
|
|
56
59
|
# [node_reqs] - other ComfyUI nodes to clone
|
|
57
60
|
node_reqs: List[NodeReq] = field(default_factory=list)
|
|
58
61
|
|
|
@@ -215,19 +215,12 @@ def pixi_install(
|
|
|
215
215
|
else:
|
|
216
216
|
log("Warning: CUDA packages requested but no GPU detected")
|
|
217
217
|
|
|
218
|
-
# Install system dependencies on Linux
|
|
219
|
-
if sys.platform == "linux":
|
|
220
|
-
log("Installing
|
|
221
|
-
subprocess.run(
|
|
222
|
-
["sudo", "apt-get", "update"],
|
|
223
|
-
capture_output=True,
|
|
224
|
-
)
|
|
218
|
+
# Install system dependencies on Linux via apt
|
|
219
|
+
if sys.platform == "linux" and cfg.apt_packages:
|
|
220
|
+
log(f"Installing apt packages: {cfg.apt_packages}")
|
|
221
|
+
subprocess.run(["sudo", "apt-get", "update"], capture_output=True)
|
|
225
222
|
subprocess.run(
|
|
226
|
-
["sudo", "apt-get", "install", "-y",
|
|
227
|
-
"python3-dev", # Build deps for C extensions
|
|
228
|
-
"libgl1-mesa-glx", # OpenGL
|
|
229
|
-
"libglu1-mesa", # GLU
|
|
230
|
-
],
|
|
223
|
+
["sudo", "apt-get", "install", "-y"] + cfg.apt_packages,
|
|
231
224
|
capture_output=True,
|
|
232
225
|
)
|
|
233
226
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|