From 2eefd0100535436fce1b96e944269ce16068602e Mon Sep 17 00:00:00 2001
From: Aditya Kamath <Aditya.Kamath1@ibm.com>
Date: Wed, 20 May 2026 03:48:56 -0500
Subject: [PATCH 07/10] Add AIX to uv torch backend

---
 crates/uv-torch/src/backend.rs | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/crates/uv-torch/src/backend.rs b/crates/uv-torch/src/backend.rs
index 775faf374..eab456e67 100644
--- a/crates/uv-torch/src/backend.rs
+++ b/crates/uv-torch/src/backend.rs
@@ -469,7 +469,8 @@ impl TorchStrategy {
                     | Os::Haiku { .. }
                     | Os::Android { .. }
                     | Os::Pyodide { .. }
-                    | Os::Ios { .. } => Either::Right(Either::Left(std::iter::once(
+                    | Os::Ios { .. }
+                    | Os::Aix { .. } => Either::Right(Either::Left(std::iter::once(
                         TorchBackend::Cpu.index_url(*source),
                     ))),
                 }
@@ -501,7 +502,8 @@ impl TorchStrategy {
                 | Os::Haiku { .. }
                 | Os::Android { .. }
                 | Os::Pyodide { .. }
-                | Os::Ios { .. } => Either::Right(Either::Left(std::iter::once(
+                | Os::Ios { .. }
+                | Os::Aix { .. } => Either::Right(Either::Left(std::iter::once(
                     TorchBackend::Cpu.index_url(*source),
                 ))),
             },
@@ -519,7 +521,8 @@ impl TorchStrategy {
                 | Os::Haiku { .. }
                 | Os::Android { .. }
                 | Os::Pyodide { .. }
-                | Os::Ios { .. } => Either::Right(Either::Left(std::iter::once(
+                | Os::Ios { .. }
+                | Os::Aix { .. } => Either::Right(Either::Left(std::iter::once(
                     TorchBackend::Cpu.index_url(*source),
                 ))),
             },
-- 
2.51.2

