pixi
pixi copied to clipboard
pixi 0.27.1 fails to parse project manifest with *xx* pattern version
Checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
Add a dependency with special pattern like the following to pyproject.toml
[tool.pixi.dependencies]
jaxlib = "*cpu*"
Issue description
Pixi commands fail with the following error message:
if I rollback to 0.27.0 it works as expected
Expected behavior
Pixi should be able to parse these pattern versions, as it did in prior versions.
I will have to investigate but I think in the previous version this would also not parse properly. We expect a version string not a matchspec. I think what you want to achieve is:
jaxlib = { build = "*cpu*" }
E.g. select any version that has cpu anywhere in the build string.
I made an attempt at improving the error message: https://github.com/prefix-dev/pixi/pull/1786
It was definitely working with 0.27.0 but thanks, the 'build' fix works with 0.27.1!
And thanks for the error message update!
Closing this now that #1786 has been merged.