File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ const PY_3_12: PythonVersion = PythonVersion {
9
9
minor : 12 ,
10
10
} ;
11
11
12
+ const PY_3_13 : PythonVersion = PythonVersion {
13
+ major : 3 ,
14
+ minor : 13 ,
15
+ } ;
16
+
12
17
/// Macro which expands to multiple macro calls, one per pyo3-ffi struct.
13
18
#[ proc_macro]
14
19
pub fn for_all_structs ( input : proc_macro:: TokenStream ) -> proc_macro:: TokenStream {
@@ -49,6 +54,14 @@ pub fn for_all_structs(input: proc_macro::TokenStream) -> proc_macro::TokenStrea
49
54
. unwrap ( )
50
55
. strip_suffix ( ".html" )
51
56
. unwrap ( ) ;
57
+
58
+ if struct_name == "PyConfig" && pyo3_build_config:: get ( ) . version == PY_3_13 {
59
+ // https://github.com/python/cpython/issues/130940
60
+ // PyConfig has an ABI break on Python 3.13.1 -> 3.13.2, waiting for advice
61
+ // how to proceed in PyO3.
62
+ continue ;
63
+ }
64
+
52
65
let struct_ident = Ident :: new ( struct_name, Span :: call_site ( ) ) ;
53
66
output. extend ( quote ! ( #macro_name!( #struct_ident) ; ) ) ;
54
67
}
You can’t perform that action at this time.
0 commit comments