Skip to content

Commit c6a84e9

Browse files
committed
Remove _msi from expected global extensions
1 parent 44bfcbd commit c6a84e9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/validation.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,6 @@ const GLOBAL_EXTENSIONS_POSIX: &[&str] = &[
759759
const GLOBAL_EXTENSIONS_LINUX_PRE_3_13: &[&str] = &["spwd"];
760760

761761
const GLOBAL_EXTENSIONS_WINDOWS: &[&str] = &[
762-
"_msi",
763762
"_overlapped",
764763
"_winapi",
765764
"_xxsubinterpreters",
@@ -769,6 +768,8 @@ const GLOBAL_EXTENSIONS_WINDOWS: &[&str] = &[
769768
"winsound",
770769
];
771770

771+
const GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13 : &[&str] = &["_msi"];
772+
772773
/// Extension modules not present in Windows static builds.
773774
const GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC: &[&str] = &["_testinternalcapi", "_tkinter"];
774775

@@ -1494,6 +1495,10 @@ fn validate_extension_modules(
14941495
if is_windows {
14951496
wanted.extend(GLOBAL_EXTENSIONS_WINDOWS);
14961497

1498+
if matches!(python_major_minor, "3.8" | "3.9" | "3.10" | "3.11" | "3.12") {
1499+
wanted.extend(GLOBAL_EXTENSIONS_WINDOWS_PRE_3_13);
1500+
}
1501+
14971502
if static_crt {
14981503
for x in GLOBAL_EXTENSIONS_WINDOWS_NO_STATIC {
14991504
wanted.remove(*x);

0 commit comments

Comments
 (0)