Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: check for correct platform in task env creation #759

Merged
merged 8 commits into from
Feb 13, 2024

Conversation

ruben-arts
Copy link
Contributor

pixi run -e mlx test would have tried to do something without an error. This pr changes that to this error:

➜ pixi run -e mlx test
  × The current platform 'linux-64' is not supported by the `mlx` environment. Supported platforms: osx-arm64
[project]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]

[tasks]
train = "python train.py"
test = "python test.py"
start = {depends_on = ["train", "test"]}


[feature.mlx]
platforms = ["osx-arm64"]
system-requirements = {macos = "13.3"}

[feature.mlx.tasks]
train = "python train.py --mlx"
test = "python test.py --mlx"

[feature.mlx.dependencies]
mlx = "*"


[environments]
mlx = ["mlx"]
default = ["cpu"]

src/cli/run.rs Show resolved Hide resolved
src/cli/run.rs Outdated Show resolved Hide resolved
src/cli/run.rs Show resolved Hide resolved
src/task/task_graph.rs Outdated Show resolved Hide resolved
@ruben-arts ruben-arts merged commit ebe4b49 into prefix-dev:main Feb 13, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants