From 207bdab95010a0489e661bad8ca109c96aad46a8 Mon Sep 17 00:00:00 2001 From: Kasimir Tanner <31862638+Yezat@users.noreply.github.com> Date: Fri, 2 Oct 2026 07:32:13 +0200 Subject: [PATCH] pyproject : add linux platform marker to uv torch source (#29177) In tool.uv.sources, torch was unconditionally pinned to the custom pytorch CPU index, which lacks macOS Darwin wheels and causes uv sync to fail on macOS. Add the sys_platform == 'linux' marker to match the existing Poetry dependencies configuration. Assisted-by: Antigravity Resolves: https://github.com/ggml-org/llama.cpp/issues/29176 --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0383fbc5e6..158ce16236 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,9 @@ url = "https://download.pytorch.org/whl/cpu" priority = "explicit" [tool.uv.sources] -torch = { index = "pytorch" } +torch = [ + { index = "pytorch", marker = "sys_platform == 'linux'" }, +] [[tool.uv.index]] name = "pytorch"