From a613697315251cfe2d4eb61ab0f8595dc7cea958 Mon Sep 17 00:00:00 2001 From: Aditya Kamath Date: Wed, 20 May 2026 03:50:06 -0500 Subject: [PATCH 08/10] Add AIX as a uv platform tag --- crates/uv-platform-tags/src/platform_tag.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/uv-platform-tags/src/platform_tag.rs b/crates/uv-platform-tags/src/platform_tag.rs index 34bb7f83a..c7d96d869 100644 --- a/crates/uv-platform-tags/src/platform_tag.rs +++ b/crates/uv-platform-tags/src/platform_tag.rs @@ -69,6 +69,7 @@ pub enum PlatformTag { Dragonfly { release_arch: SmallString }, /// Ex) `haiku_1_x86_64` Haiku { release_arch: SmallString }, + Aix { release_arch: SmallString }, /// Ex) `illumos_5_11_x86_64` Illumos { release_arch: SmallString }, /// Ex) `solaris_11_4_x86_64` @@ -108,6 +109,7 @@ impl PlatformTag { Self::OpenBsd { .. } => Some("OpenBSD"), Self::Dragonfly { .. } => Some("DragonFly"), Self::Haiku { .. } => Some("Haiku"), + Self::Aix { .. } => Some("AIX"), Self::Illumos { .. } => Some("Illumos"), Self::Solaris { .. } => Some("Solaris"), Self::Pyodide { .. } => Some("Pyodide"), @@ -425,6 +427,7 @@ impl std::fmt::Display for PlatformTag { Self::OpenBsd { release_arch } => write!(f, "openbsd_{release_arch}"), Self::Dragonfly { release_arch } => write!(f, "dragonfly_{release_arch}"), Self::Haiku { release_arch } => write!(f, "haiku_{release_arch}"), + Self::Aix { release_arch } => write!(f, "aix_{release_arch}"), Self::Illumos { release_arch } => write!(f, "illumos_{release_arch}"), Self::Solaris { release_arch } => write!(f, "solaris_{release_arch}_64bit"), Self::Pyodide { major, minor } => write!(f, "pyodide_{major}_{minor}_wasm32"), @@ -868,6 +871,12 @@ impl FromStr for PlatformTag { }); } + if let Some(rest) = s.strip_prefix("aix_") { + return Ok(Self::Aix { + release_arch: SmallString::from(rest), + }); + } + Err(ParsePlatformTagError::UnknownFormat(s.to_string())) } } -- 2.51.2