Repository navigation
chore: replace deprecated cuda system-requirements with named platform - #18
Merged
Merged
Conversation
pixi deprecated `[system-requirements]` in favor of rich platform entries in `[workspace].platforms`. Declare a named `linux-64-cuda` platform (cuda = "13.0") and bind the `mlgpu` feature to it, so the `ml` environment targets only that platform while `mlcpu` stays on plain `linux-64`. pixi.lock is unchanged: pixi matches locked entries by subdir and virtual packages, so `pixi lock --check` reports it as up to date. The existing `requires-pixi = ">=0.76.2"` already covers rich platforms (introduced in pixi 0.71.0). Assisted-by: Claude (Anthropic)
Assisted-by: Claude (Anthropic)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #15
Summary
pixi deprecated
[system-requirements]in favor of rich/named platforms in[workspace].platforms(system requirements, platform definition).{ name = "linux-64-cuda", platform = "linux-64", cuda = "13.0" }to[workspace].platforms[feature.mlgpu.system-requirements]; bindmlgpuviaplatforms = ["linux-64-cuda"]CLAUDE.md/CONTRIBUTING.mddescriptionspixi infoconfirmsml→linux-64-cuda (cuda=13.0)only,mlcpu→linux-64only.Notes
pixi.lockunchanged: pixi matches locked entries by subdir + virtual packages, sopixi lock --checkreports it up to date (no re-solve).requires-pixi: existing>=0.76.2already covers rich platforms (added in pixi 0.71.0). Not bumped to>=0.78.0(which writes manifest platform names into the lockfile instead ofpNaliases) since nothing here needs it.devenvironment now also listslinux-64-cudaas a target platform (it has no platform restriction). Harmless, but could pin[feature.dev]to plain platforms if preferred.Test plan
pixi infoshows expected environment platformspixi lock --checkpassesCONDA_OVERRIDE_CUDAbelow the declaredcuda = "13.0"; confirmpixi install --locked -e mlstill accepts it.🤖 Generated with Claude Code