-
Notifications
You must be signed in to change notification settings - Fork 210
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
Pixi updates python without being asked #1193
Comments
Yes, I can definitely reproduce, even with the following toml: [project]
name = "test"
description = "Minimal pyproject.toml with minimal [tool.pixi] section."
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64"]
[tool.pixi.dependencies]
python = ">=3.11,<3.12"
numpy = ">=1.26.4,<1.27" and just running Adding a |
with these all gave me 3.11.0 instead of 3.11.8 |
Hum. Currently, if there is no requires_python, a conda python dependency is added to the manifest (without any version specifier). My hypothesis was that the solver would provide the version that matched all predicates: is that incorrect? |
It would probably make sense in the absence of "requires-python" to fall back to what's in tool.pixi ? |
Definitely. The intent was to take both into account, letting the solver do the hard job |
I started on some improvements in #1201 - would be happy to hear your opinions :) |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
From empty folder with minimal
pyproject.toml
Windows shown here, same on Linux.
Final
pyproject.toml
becomes:Issue description
Pixi updates python to latest without being asked to do so
Expected behavior
Keep python what it was
The text was updated successfully, but these errors were encountered: