@@ -681,7 +681,7 @@ const GLOBAL_EXTENSIONS: &[&str] = &[
681
681
// We didn't build ctypes_test until 3.9.
682
682
// We didn't build some test extensions until 3.9.
683
683
684
- const GLOBAL_EXTENSIONS_PYTHON_3_8 : & [ & str ] = & [ "_sha256" , "_sha512" , "parser" ] ;
684
+ const GLOBAL_EXTENSIONS_PYTHON_3_8 : & [ & str ] = & [ "audioop" , " _sha256", "_sha512" , "parser" ] ;
685
685
686
686
const GLOBAL_EXTENSIONS_PYTHON_3_9 : & [ & str ] = & [
687
687
"audioop" ,
@@ -725,16 +725,16 @@ const GLOBAL_EXTENSIONS_PYTHON_3_12: &[&str] = &[
725
725
] ;
726
726
727
727
const GLOBAL_EXTENSIONS_PYTHON_3_13 : & [ & str ] = & [
728
- "_sha2" ,
729
- "_tokenize" ,
730
- "_typing" ,
731
728
"_interpchannels" ,
732
- "_subinterpreters" ,
733
- "_zoneinfo" ,
729
+ "_interpqueues" ,
734
730
"_interpreters" ,
731
+ "_sha2" ,
735
732
"_suggestions" ,
736
733
"_sysconfig" ,
737
734
"_testexternalinspection" ,
735
+ "_tokenize" ,
736
+ "_typing" ,
737
+ "_zoneinfo" ,
738
738
] ;
739
739
740
740
const GLOBAL_EXTENSIONS_MACOS : & [ & str ] = & [ "_scproxy" ] ;
@@ -1073,7 +1073,11 @@ fn validate_elf<'data, Elf: FileHeader<Endian = Endianness>>(
1073
1073
if let Some ( filename) = path. file_name ( ) {
1074
1074
let filename = filename. to_string_lossy ( ) ;
1075
1075
1076
- if filename. starts_with ( "libpython" ) && filename. ends_with ( ".so.1.0" ) && matches ! ( symbol. st_bind( ) , STB_GLOBAL | STB_WEAK ) && symbol. st_visibility ( ) == STV_DEFAULT {
1076
+ if filename. starts_with ( "libpython" )
1077
+ && filename. ends_with ( ".so.1.0" )
1078
+ && matches ! ( symbol. st_bind( ) , STB_GLOBAL | STB_WEAK )
1079
+ && symbol. st_visibility ( ) == STV_DEFAULT
1080
+ {
1077
1081
context. libpython_exported_symbols . insert ( name. to_string ( ) ) ;
1078
1082
}
1079
1083
}
@@ -1659,14 +1663,12 @@ fn validate_json(json: &PythonJsonMain, triple: &str, is_debug: bool) -> Result<
1659
1663
. map ( |x| x. as_str ( ) )
1660
1664
. collect :: < BTreeSet < _ > > ( ) ;
1661
1665
1662
- errors. extend (
1663
- validate_extension_modules (
1664
- & json. python_major_minor_version ,
1665
- triple,
1666
- json. crt_features . contains ( & "static" . to_string ( ) ) ,
1667
- & have_extensions,
1668
- ) ?,
1669
- ) ;
1666
+ errors. extend ( validate_extension_modules (
1667
+ & json. python_major_minor_version ,
1668
+ triple,
1669
+ json. crt_features . contains ( & "static" . to_string ( ) ) ,
1670
+ & have_extensions,
1671
+ ) ?) ;
1670
1672
1671
1673
Ok ( errors)
1672
1674
}
@@ -1998,7 +2000,9 @@ fn validate_distribution(
1998
2000
} else if triple. contains ( "-windows-" ) {
1999
2001
false
2000
2002
// Presence of a shared library extension implies no export.
2001
- } else { ext. shared_lib . is_none ( ) } ;
2003
+ } else {
2004
+ ext. shared_lib . is_none ( )
2005
+ } ;
2002
2006
2003
2007
if exported != wanted {
2004
2008
context. errors . push ( format ! (
0 commit comments