optional cuda system dependency #2746
-
my pyproject.toml looks like [project]
name = "chemxtract"
version = "1.0.0"
description = "foo"
authors = [{ name = "bar", email = "baz" }]
requires-python = "==3.13"
[tool.pixi.project]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64", "linux-aarch64"]
channels = ["pytorch", "conda-forge", "bioconda", "anaconda"]
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[tool.pixi.environments]
img2txt = { features = [
"img2txt",
"img2txt_base",
], solve-group = "img2txt", no-default-feature = true }
img2txt-cuda = { features = [
"img2txt_base",
"img2txt-cuda",
], solve-group = "img2txt", no-default-feature = true }
[tool.pixi.feature.img2txt_base.dependencies]
python = "~=3.12.0"
[tool.pixi.feature.img2txt_base.pypi-dependencies]
layoutparser = { version = "==0.3.4", extras = ["layoutmodels", "ocr"] }
easyocr = "~=1.7.2"
[tool.pixi.feature.img2txt.dependencies]
[tool.pixi.feature.img2txt.pypi-dependencies]
paddlepaddle = "~=2.6.2"
[tool.pixi.feature.img2txt-cuda]
platforms = ["win-64", "linux-64"]
system-requirements = { cuda = "12" }
[tool.pixi.feature.img2txt-cuda.target.linux-64.dependencies]
cuda-version = { version = ">=12.0,<=12.6" }
[tool.pixi.feature.img2txt-cuda.target.linux-64.pypi-dependencies]
paddlepaddle-gpu = "~=2.6.2" A what is wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
ruben-arts
Dec 20, 2024
Replies: 1 comment 1 reply
-
With the current implementation, we make the solve group environments behave as one. For now the fix would be to skip the solve-group. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
geoHeil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the current implementation, we make the solve group environments behave as one. For now the fix would be to skip the solve-group.