Skip to content

Commit c2db3b8

Browse files
committed
Allow _PyWarnings_Init to be missing on 3.13
1 parent cb2b4a7 commit c2db3b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/validation.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,9 +1952,10 @@ fn validate_distribution(
19521952
// Static distributions never export symbols.
19531953
let wanted = if is_static {
19541954
false
1955-
// For some strange reason _PyWarnings_Init is exported as part of the ABI.
1955+
// For some strange reason _PyWarnings_Init is exported as part of the ABI before
1956+
// Python 3.13.
19561957
} else if name == "_warnings" {
1957-
true
1958+
matches!(python_major_minor, "3.9" | "3.10" | "3.11" | "3.12")
19581959
// Windows dynamic doesn't export extension module init functions.
19591960
} else if triple.contains("-windows-") {
19601961
false

0 commit comments

Comments
 (0)