-
Using pip like: [project]
name = "foo"
version = "1.0.0"
description = "bar"
authors = [{ name = "xx", email = "yy" }]
requires-python = "~= 3.13"
[tool.pixi.project]
platforms = ["linux-64", "win-64", "linux-aarch64", "osx-arm64"]
channels = ["conda-forge"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.environments]
ocr-mineru = { features = [
"ocr-mineru",
], solve-group = "ocr-mineru", no-default-feature = true }
[tool.pixi.feature.ocr-mineru.dependencies]
python = "~=3.10.0"
pip = "*" Then executing: pixi update
pixi shell -e ocr-mineru
pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com works fine. However, a pure pixi appraoch like: [project]
name = "foo"
version = "1.0.0"
description = "bar"
authors = [{ name = "xx", email = "yy" }]
requires-python = "~= 3.13"
[tool.pixi.project]
platforms = ["linux-64", "win-64", "linux-aarch64", "osx-arm64"]
channels = ["conda-forge"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.environments]
ocr-mineru = { features = [
"ocr-mineru",
], solve-group = "ocr-mineru", no-default-feature = true }
[tool.pixi.feature.ocr-mineru.dependencies]
python = "~=3.10.0"
pip = "*"
[tool.pixi.feature.ocr-mineru.pypi-dependencies]
magic-pdf = { version = ">1,<2", extras = ["full"] }
given a config
fails with:
how can this be fixed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
hey @geoHeil ! what is the result if you will use this version specifier could you also please do a thanks! |
Beta Was this translation helpful? Give feedback.
-
@geoHeil do you still have questions here? If so, perhaps they could be broken out into new discussions and we can close this one? |
Beta Was this translation helpful? Give feedback.
it is related to selecting pre-release versions during the solve. by default UV allows pre-release versions if all versions of a package are pre-release, or if the package has an explicit pre-release marker in its version requirements.
so in this case we are using an explicit version selector to trigger this behaviour.
it is configurable in UV https://docs.astral.sh/uv/reference/settings/#prerelease
but we don't allow this configuration yet: #1291 (comment)
also cross-related with this: #1357