comfy-env 0.0.22__tar.gz → 0.0.24__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.22 → comfy_env-0.0.24}/PKG-INFO +1 -1
- {comfy_env-0.0.22 → comfy_env-0.0.24}/pyproject.toml +1 -1
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/pixi.py +38 -4
- {comfy_env-0.0.22 → comfy_env-0.0.24}/.github/workflows/publish.yml +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/.gitignore +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/LICENSE +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/README.md +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/cli.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/decorator.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/config.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/config_file.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/cuda_gpu_detection.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/manager.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/platform/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/platform/base.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/platform/darwin.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/platform/linux.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/platform/windows.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/env/security.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/errors.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/install.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/bridge.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/protocol.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/tensor.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/torch_bridge.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/transport.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/ipc/worker.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/registry.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/resolver.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/stubs/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/stubs/folder_paths.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/wheel_sources.yml +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/__init__.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/base.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/pool.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/tensor_utils.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/torch_mp.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/src/comfy_env/workers/venv.py +0 -0
- {comfy_env-0.0.22 → comfy_env-0.0.24}/untitled.txt +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.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
|
|
@@ -176,7 +176,7 @@ def create_pixi_toml(
|
|
|
176
176
|
lines = []
|
|
177
177
|
|
|
178
178
|
# Project section
|
|
179
|
-
lines.append("[
|
|
179
|
+
lines.append("[workspace]")
|
|
180
180
|
lines.append(f'name = "{env_config.name}"')
|
|
181
181
|
lines.append('version = "0.1.0"')
|
|
182
182
|
|
|
@@ -274,6 +274,35 @@ def create_pixi_toml(
|
|
|
274
274
|
return pixi_toml_path
|
|
275
275
|
|
|
276
276
|
|
|
277
|
+
def clean_pixi_artifacts(
|
|
278
|
+
node_dir: Path,
|
|
279
|
+
log: Callable[[str], None] = print,
|
|
280
|
+
) -> None:
|
|
281
|
+
"""
|
|
282
|
+
Remove previous pixi installation artifacts.
|
|
283
|
+
|
|
284
|
+
This ensures a clean state before generating a new pixi.toml,
|
|
285
|
+
preventing stale lock files or cached environments from causing conflicts.
|
|
286
|
+
|
|
287
|
+
Args:
|
|
288
|
+
node_dir: Directory containing the pixi artifacts.
|
|
289
|
+
log: Logging callback.
|
|
290
|
+
"""
|
|
291
|
+
pixi_toml = node_dir / "pixi.toml"
|
|
292
|
+
pixi_lock = node_dir / "pixi.lock"
|
|
293
|
+
pixi_dir = node_dir / ".pixi"
|
|
294
|
+
|
|
295
|
+
if pixi_toml.exists():
|
|
296
|
+
pixi_toml.unlink()
|
|
297
|
+
log(" Removed previous pixi.toml")
|
|
298
|
+
if pixi_lock.exists():
|
|
299
|
+
pixi_lock.unlink()
|
|
300
|
+
log(" Removed previous pixi.lock")
|
|
301
|
+
if pixi_dir.exists():
|
|
302
|
+
shutil.rmtree(pixi_dir)
|
|
303
|
+
log(" Removed previous .pixi/ directory")
|
|
304
|
+
|
|
305
|
+
|
|
277
306
|
def pixi_install(
|
|
278
307
|
env_config: IsolatedEnv,
|
|
279
308
|
node_dir: Path,
|
|
@@ -284,9 +313,10 @@ def pixi_install(
|
|
|
284
313
|
Install conda and pip packages using pixi.
|
|
285
314
|
|
|
286
315
|
This is the main entry point for pixi-based installation. It:
|
|
287
|
-
1.
|
|
288
|
-
2.
|
|
289
|
-
3.
|
|
316
|
+
1. Cleans previous pixi artifacts
|
|
317
|
+
2. Ensures pixi is installed
|
|
318
|
+
3. Generates pixi.toml from the config
|
|
319
|
+
4. Runs `pixi install` to install all dependencies
|
|
290
320
|
|
|
291
321
|
Args:
|
|
292
322
|
env_config: The isolated environment configuration.
|
|
@@ -304,6 +334,7 @@ def pixi_install(
|
|
|
304
334
|
|
|
305
335
|
if dry_run:
|
|
306
336
|
log("Dry run - would:")
|
|
337
|
+
log(f" - Clean previous pixi artifacts")
|
|
307
338
|
log(f" - Ensure pixi is installed")
|
|
308
339
|
log(f" - Generate pixi.toml in {node_dir}")
|
|
309
340
|
if env_config.conda:
|
|
@@ -312,6 +343,9 @@ def pixi_install(
|
|
|
312
343
|
log(f" - Install {len(env_config.requirements)} pip packages")
|
|
313
344
|
return True
|
|
314
345
|
|
|
346
|
+
# Clean previous pixi artifacts
|
|
347
|
+
clean_pixi_artifacts(node_dir, log)
|
|
348
|
+
|
|
315
349
|
# Ensure pixi is installed
|
|
316
350
|
pixi_path = ensure_pixi(log=log)
|
|
317
351
|
|
|
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
|
|
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
|