File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1962,10 +1962,14 @@ fn validate_distribution(
1962
1962
// Static distributions never export symbols.
1963
1963
let wanted = if is_static {
1964
1964
false
1965
- // For some strange reason _PyWarnings_Init is exported as part of the ABI before
1966
- // Python 3.13.
1965
+ // For some strange reason _PyWarnings_Init is exported as part of the ABI
1967
1966
} else if name == "_warnings" {
1968
- matches ! ( python_major_minor, "3.8" | "3.9" | "3.10" | "3.11" | "3.12" )
1967
+ // But not on Python 3.13 on Windows
1968
+ if triple. contains ( "-windows-" ) {
1969
+ matches ! ( python_major_minor, "3.8" | "3.9" | "3.10" | "3.11" | "3.12" )
1970
+ } else {
1971
+ true
1972
+ }
1969
1973
// Windows dynamic doesn't export extension module init functions.
1970
1974
} else if triple. contains ( "-windows-" ) {
1971
1975
false
You can’t perform that action at this time.
0 commit comments