Skip to content

Commit 3b0f853

Browse files
rparolinclaude
andauthored
cuda.core: fix invalid python_version target in pixi.toml (#2029)
Pixi's [package.target.<X>] only accepts platform identifiers; the 'python_version < "3.11"' selector caused every pixi invocation against cuda_core/pixi.toml to fail at manifest-parse time ('python_version < "3.11"' is not a known platform). Move backports.strenum into [package.run-dependencies] unconditionally and let conda-forge's per-Python variants (real impl on <3.11, no-op stub on >=3.12) handle version selection. Lockfile regenerated. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cf2f86a commit 3b0f853

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

cuda_core/pixi.lock

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cuda_core/pixi.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,10 @@ cuda-version = "*"
185185
numpy = "*"
186186
cuda-bindings = "*"
187187
cuda-pathfinder = "*"
188-
189-
[package.target.'python_version < "3.11"'.run-dependencies]
188+
# Conda-forge ships per-Python variants of backports.strenum (real impl on
189+
# <3.11, no-op stub on >=3.12); pixi-build doesn't accept PEP 508-style
190+
# `python_version` selectors in [package.target.<X>], so list it
191+
# unconditionally and let the solver pick the right variant.
190192
"backports.strenum" = "*"
191193

192194
[target.linux.tasks.build-cython-tests]

0 commit comments

Comments
 (0)