comfy-env 0.0.62__py3-none-any.whl → 0.0.64__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/pixi.py +20 -22
- {comfy_env-0.0.62.dist-info → comfy_env-0.0.64.dist-info}/METADATA +1 -1
- {comfy_env-0.0.62.dist-info → comfy_env-0.0.64.dist-info}/RECORD +6 -6
- {comfy_env-0.0.62.dist-info → comfy_env-0.0.64.dist-info}/WHEEL +0 -0
- {comfy_env-0.0.62.dist-info → comfy_env-0.0.64.dist-info}/entry_points.txt +0 -0
- {comfy_env-0.0.62.dist-info → comfy_env-0.0.64.dist-info}/licenses/LICENSE +0 -0
comfy_env/pixi.py
CHANGED
|
@@ -329,15 +329,10 @@ def create_pixi_toml(
|
|
|
329
329
|
lines.append(f'name = "{env_config.name}"')
|
|
330
330
|
lines.append('version = "0.1.0"')
|
|
331
331
|
|
|
332
|
-
# Channels -
|
|
332
|
+
# Channels - use conda-forge only (pytorch channel is deprecated)
|
|
333
|
+
# PyTorch is installed via PyPI with extra-index-urls for proper CUDA version support
|
|
333
334
|
base_channels = conda.channels or ["conda-forge"]
|
|
334
|
-
|
|
335
|
-
# GPU detected - add pytorch and nvidia channels for CUDA support
|
|
336
|
-
channels = ["pytorch", "nvidia"] + [ch for ch in base_channels if ch not in ["pytorch", "nvidia"]]
|
|
337
|
-
else:
|
|
338
|
-
# No GPU - just add pytorch channel for CPU-only pytorch
|
|
339
|
-
channels = ["pytorch"] + [ch for ch in base_channels if ch != "pytorch"]
|
|
340
|
-
channels_str = ", ".join(f'"{ch}"' for ch in channels)
|
|
335
|
+
channels_str = ", ".join(f'"{ch}"' for ch in base_channels)
|
|
341
336
|
lines.append(f"channels = [{channels_str}]")
|
|
342
337
|
|
|
343
338
|
# Platforms
|
|
@@ -365,20 +360,6 @@ def create_pixi_toml(
|
|
|
365
360
|
lines.append(f'python = "{env_config.python}.*"')
|
|
366
361
|
lines.append('pip = "*"') # Required for installing CUDA packages with --no-deps
|
|
367
362
|
|
|
368
|
-
# Add PyTorch via conda
|
|
369
|
-
# - With GPU: pytorch + pytorch-cuda for CUDA support
|
|
370
|
-
# - No GPU: pytorch 2.8.0 CPU-only (default)
|
|
371
|
-
torch_version = env_config.pytorch_version or "2.8.0"
|
|
372
|
-
torch_parts = torch_version.split(".")
|
|
373
|
-
torch_mm = ".".join(torch_parts[:2]) # "2.8.0" -> "2.8"
|
|
374
|
-
lines.append(f'pytorch = "{torch_mm}.*"')
|
|
375
|
-
|
|
376
|
-
if env_config.cuda:
|
|
377
|
-
# GPU detected - add pytorch-cuda for CUDA runtime
|
|
378
|
-
cuda_parts = env_config.cuda.split(".")
|
|
379
|
-
cuda_mm = ".".join(cuda_parts[:2]) # "12.8" -> "12.8"
|
|
380
|
-
lines.append(f'pytorch-cuda = "{cuda_mm}"')
|
|
381
|
-
|
|
382
363
|
# On Windows, use MKL BLAS to avoid OpenBLAS crashes (numpy blas_fpe_check issue)
|
|
383
364
|
if sys.platform == "win32":
|
|
384
365
|
lines.append('libblas = { version = "*", build = "*mkl" }')
|
|
@@ -455,6 +436,23 @@ def create_pixi_toml(
|
|
|
455
436
|
elif sys.platform == "win32" and env_config.windows_requirements:
|
|
456
437
|
pypi_deps.extend(env_config.windows_requirements)
|
|
457
438
|
|
|
439
|
+
# PyPI options for PyTorch - use CUDA index for GPU, plain PyPI for CPU
|
|
440
|
+
# The pytorch conda channel is deprecated, so we use PyPI wheels
|
|
441
|
+
if env_config.cuda:
|
|
442
|
+
# GPU detected - use CUDA-enabled PyTorch wheels
|
|
443
|
+
cuda_parts = env_config.cuda.split(".")
|
|
444
|
+
cuda_short = "".join(cuda_parts[:2]) # "12.8" -> "128"
|
|
445
|
+
lines.append("[pypi-options]")
|
|
446
|
+
lines.append(f'extra-index-urls = ["https://download.pytorch.org/whl/cu{cuda_short}"]')
|
|
447
|
+
lines.append("")
|
|
448
|
+
# For CPU-only, no extra index needed - plain torch from PyPI works
|
|
449
|
+
|
|
450
|
+
# Add torch to pypi dependencies
|
|
451
|
+
torch_version = env_config.pytorch_version or "2.8.0"
|
|
452
|
+
torch_parts = torch_version.split(".")
|
|
453
|
+
torch_mm = ".".join(torch_parts[:2]) # "2.8.0" -> "2.8"
|
|
454
|
+
pypi_deps.insert(0, f"torch>={torch_mm},<{torch_parts[0]}.{int(torch_parts[1])+1}")
|
|
455
|
+
|
|
458
456
|
if pypi_deps or special_deps:
|
|
459
457
|
lines.append("[pypi-dependencies]")
|
|
460
458
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comfy-env
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.64
|
|
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
|
|
@@ -5,7 +5,7 @@ comfy_env/errors.py,sha256=q-C3vyrPa_kk_Ao8l17mIGfJiG2IR0hCFV0GFcNLmcI,9924
|
|
|
5
5
|
comfy_env/install.py,sha256=nfzGifXVd87a6dnwY3GtktrXpS7fjWuWF-QV9hh2e94,15657
|
|
6
6
|
comfy_env/isolation.py,sha256=a-q6mA9tzD27kZSZCTioSKlK-3kpRFKYA23V_75OmaI,9286
|
|
7
7
|
comfy_env/nodes.py,sha256=CWUe35jU5SKk4ur-SddZePdqWgxJDlxGhpcJiu5pAK4,4354
|
|
8
|
-
comfy_env/pixi.py,sha256=
|
|
8
|
+
comfy_env/pixi.py,sha256=DnDvX3aMtwbo8XPJUt4JYADUyWcXGJ72PqcpN7Fkg_A,27440
|
|
9
9
|
comfy_env/registry.py,sha256=w-QwvAPFlCrBYRAv4cXkp2zujQPZn8Fk5DUxKCtox8o,3430
|
|
10
10
|
comfy_env/resolver.py,sha256=WoNIo2IfTR2RlEf_HQl66eAeMa2R2pmLof_UdK-0RNE,6714
|
|
11
11
|
comfy_env/stub_imports.py,sha256=qOYxCJ8BbIfMHGBfqC5KGZSK6AK-iqmSjWi8ZCP8SAM,8425
|
|
@@ -41,8 +41,8 @@ comfy_env/workers/tensor_utils.py,sha256=TCuOAjJymrSbkgfyvcKtQ_KbVWTqSwP9VH_bCaF
|
|
|
41
41
|
comfy_env/workers/torch_mp.py,sha256=TnsCoBHEJBXEoBkx7WiCd9tBAlzFtMOw1dk_7_zGJZY,22288
|
|
42
42
|
comfy_env/workers/venv.py,sha256=RIW1EzWHnC4EBvfQCduYf2BVp3fND3SUZC1yJVfscxI,59325
|
|
43
43
|
comfy_env/wheel_sources.yml,sha256=uU0YJmWaiLAicQNN9VYS8PZevlP2NOH6mBUE294dvAo,8156
|
|
44
|
-
comfy_env-0.0.
|
|
45
|
-
comfy_env-0.0.
|
|
46
|
-
comfy_env-0.0.
|
|
47
|
-
comfy_env-0.0.
|
|
48
|
-
comfy_env-0.0.
|
|
44
|
+
comfy_env-0.0.64.dist-info/METADATA,sha256=AN186KrdDztWIdx_tLIEbYbSM7pT5mnyHORV_VOAse8,8735
|
|
45
|
+
comfy_env-0.0.64.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
46
|
+
comfy_env-0.0.64.dist-info/entry_points.txt,sha256=J4fXeqgxU_YenuW_Zxn_pEL7J-3R0--b6MS5t0QmAr0,49
|
|
47
|
+
comfy_env-0.0.64.dist-info/licenses/LICENSE,sha256=E68QZMMpW4P2YKstTZ3QU54HRQO8ecew09XZ4_Vn870,1093
|
|
48
|
+
comfy_env-0.0.64.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|