fix: resolve onnxruntime/onnxruntime-gpu conflict clobbering GPU support
insightface 1.0.1 added a hard dep on the CPU onnxruntime package. Combined with an incorrect override-dependencies entry in 0.2.10 that forced onnxruntime (no platform marker) unconditionally, both packages were installed into the venv on x86_64 Linux — the CPU package landed last and overwrote onnxruntime-gpu, removing CUDAExecutionProvider from the provider list. Fix: declare the two packages as conflicting in uv's resolver so only the correct one is installed per environment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-2
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "winnow"
|
||||
version = "0.2.10"
|
||||
version = "0.2.11"
|
||||
description = "Immich to Frigate training sets"
|
||||
license = "AGPL-3.0-or-later"
|
||||
requires-python = ">=3.13"
|
||||
@@ -39,7 +39,12 @@ winnow = "winnow.cli:main"
|
||||
Repository = "https://github.com/sudolulo/winnow"
|
||||
|
||||
[tool.uv]
|
||||
override-dependencies = ["onnxruntime>=1.23.2"]
|
||||
conflicts = [
|
||||
[
|
||||
{ package = "onnxruntime" },
|
||||
{ package = "onnxruntime-gpu" },
|
||||
],
|
||||
]
|
||||
required-environments = [
|
||||
"sys_platform == 'linux' and platform_machine == 'x86_64'",
|
||||
"sys_platform == 'linux' and platform_machine == 'aarch64'",
|
||||
|
||||
Reference in New Issue
Block a user