From 971e64cfab97f2d653cd2197c7e7d89cfa5e6928 Mon Sep 17 00:00:00 2001 From: Thomas Pellissier-Tanon Date: Fri, 5 Jun 2026 16:48:30 +0200 Subject: [PATCH] resolve_platform_tags: remove a redundant case It is equivalent to the next case --- src/build_context/builder.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/build_context/builder.rs b/src/build_context/builder.rs index 5024c6f31..b60eb909f 100644 --- a/src/build_context/builder.rs +++ b/src/build_context/builder.rs @@ -460,7 +460,7 @@ fn resolve_platform_tags( user_tags: Vec, target: &Target, bridge: &BridgeModel, - pyproject: Option<&crate::pyproject_toml::PyProjectToml>, + pyproject: Option<&PyProjectToml>, pyproject_options: &mut Vec<&str>, #[cfg(feature = "zig")] use_zig: bool, ) -> Result> { @@ -492,11 +492,6 @@ fn resolve_platform_tags( } else { Vec::new() } - } else if let [PlatformTag::Pypi] = &user_tags[..] { - if !is_arch_supported_by_pypi(target) { - bail!("Rust target {target} is not supported by PyPI"); - } - Vec::new() } else { if user_tags.iter().any(|tag| tag.is_pypi()) && !is_arch_supported_by_pypi(target) { bail!("Rust target {target} is not supported by PyPI");