fix: remove macOS-only marker from torch override-dependencies
Browse filesThe override-dependencies had `sys_platform == 'darwin'` markers on
torch and torchvision, which told uv to skip installing them on Linux.
This broke Docker builds on HF Spaces where torch comes from
mussel[torch-gpu]. Remove the platform marker so the override applies
everywhere.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- pyproject.toml +6 -3
pyproject.toml
CHANGED
|
@@ -43,10 +43,13 @@ disable = [
|
|
| 43 |
]
|
| 44 |
|
| 45 |
[tool.uv]
|
| 46 |
-
# Override PyTorch
|
|
|
|
|
|
|
|
|
|
| 47 |
override-dependencies = [
|
| 48 |
-
"torch>=2.0.0
|
| 49 |
-
"torchvision>=0.15.0
|
| 50 |
]
|
| 51 |
|
| 52 |
[tool.uv.sources]
|
|
|
|
| 43 |
]
|
| 44 |
|
| 45 |
[tool.uv]
|
| 46 |
+
# Override PyTorch version constraints from mussel[torch-gpu].
|
| 47 |
+
# mussel pins torch<2.6 which may be too strict; we relax to >=2.0.0.
|
| 48 |
+
# The override applies on ALL platforms (not just macOS) so Docker builds
|
| 49 |
+
# still get torch installed.
|
| 50 |
override-dependencies = [
|
| 51 |
+
"torch>=2.0.0",
|
| 52 |
+
"torchvision>=0.15.0",
|
| 53 |
]
|
| 54 |
|
| 55 |
[tool.uv.sources]
|