From fc511447fca03513a3c6ad0e9dc54c12c29a5753 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Tue, 14 Jan 2025 14:38:54 -0600 Subject: [PATCH] Allow `_wmi` --- src/validation.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/validation.rs b/src/validation.rs index 3d5ce256..1beea181 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -798,6 +798,8 @@ const GLOBAL_EXTENSIONS_WINDOWS: &[&str] = &[ "winsound", ]; +const GLOBAL_EXTENSIONS_WINDOWS_3_14: &[&str] = &["_wmi"]; + const GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13: &[&str] = &["_msi"]; /// Extension modules not present in Windows static builds. @@ -1542,6 +1544,10 @@ fn validate_extension_modules( wanted.extend(GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13); } + if matches!(python_major_minor, "3.14") { + wanted.extend(GLOBAL_EXTENSIONS_WINDOWS_3_14); + } + if static_crt { for x in GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC { wanted.remove(*x);