pixi
pixi copied to clipboard
chore(pypi): Better error message when platform is not supported for pypi project
Having a pyproject.toml like this and running on osx-arm64
[project]
name = "test"
dependencies = ["tqdm @ https://github.com/tqdm/tqdm.git"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
numpy = "*"
will first WARN on an unsupported platform
WARN Not installing dependency for (default) on current platform: (osx-arm64) as it is not part of this project's supported platforms.
But later, we will panic and error out.
▪ solving [━━━━━━━━━━━━━━━━━━━━] 1/1
⠁ updating lock-file [00:00:15] [━━━━━━━━━━━━━╾──────────────────────────] 1/3
⠚ default:linux-64 [00:00:00] resolving pypi dependencies
thread 'main2' panicked at /Users/graf/oss/pixi/crates/pixi_core/src/lock_file/resolve/build_dispatch.rs:439:17:
Error: × failed to solve the pypi requirements of environment 'default' for platform 'linux-64'
╰─▶ build dispatch initialization failed: there is no compatible Python interpreter for 'osx-arm64'
I think we can take a look ahead, and nicely erorr out instead of panic