Skip to content

Commit

Permalink
Allow _wmi
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jan 14, 2025
1 parent 5b3edf8 commit fc51144
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fc51144

Please sign in to comment.