Skip to content

Commit 43ada7c

Browse files
authored
ignore PyConfig struct in ffi-check on 3.13 for now (#4961)
* ignore `PyConfig` struct in `ffi-check` on 3.13 for now * fixup
1 parent 98a6faf commit 43ada7c

File tree

1 file changed

+13
-0
lines changed
  • pyo3-ffi-check/macro/src

1 file changed

+13
-0
lines changed

pyo3-ffi-check/macro/src/lib.rs

+13
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ const PY_3_12: PythonVersion = PythonVersion {
99
minor: 12,
1010
};
1111

12+
const PY_3_13: PythonVersion = PythonVersion {
13+
major: 3,
14+
minor: 13,
15+
};
16+
1217
/// Macro which expands to multiple macro calls, one per pyo3-ffi struct.
1318
#[proc_macro]
1419
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
4954
.unwrap()
5055
.strip_suffix(".html")
5156
.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+
5265
let struct_ident = Ident::new(struct_name, Span::call_site());
5366
output.extend(quote!(#macro_name!(#struct_ident);));
5467
}

0 commit comments

Comments
 (0)