From e6c519dc679479a72e362b17c02103e3d68903ef Mon Sep 17 00:00:00 2001 From: "Mathias L. Baumann" Date: Tue, 3 Nov 2026 12:31:48 +0100 Subject: [PATCH] Bump pyo3 to 0.29.3 to fix wheel builds on PyPy 3.12 CI started failing on build-linux (aarch64) and build-musllinux because the manylinux/musllinux build images now ship PyPy 3.12. maturin's `--find-interpreter` picks it up automatically, and pyo3-ffi 0.29.0 fails to compile for it: error[E0425]: cannot find type `c_int` in this scope error[E0425]: cannot find type `_PyInterpreterFrame` in this scope In pyo3-ffi 0.29.0, `PyDict_ClearWatcher`/`Watch`/`Unwatch` and the `PyUnstable_InterpreterFrame_*` functions are declared for any `Py_3_12` target, but the `c_int` import and the `_PyInterpreterFrame` type they need are only defined when not building for PyPy. PyPy 3.12 hits this mismatch and the crate fails to compile. pyo3-ffi 0.29.3 fixes the cfg gating so both sides agree again. Our code is unaffected; this is just a dependency bump to a newer patch release. Signed-off-by: Mathias L. Baumann --- Cargo.lock | 20 ++++++++++---------- Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 90cfdea..7aa6150 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -99,9 +99,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c" +checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" dependencies = [ "libc", "once_cell", @@ -113,18 +113,18 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078" +checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b" +checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" dependencies = [ "libc", "pyo3-build-config", @@ -132,9 +132,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771" +checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -144,9 +144,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.29.0" +version = "0.29.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362" +checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 89c69db..d4eb462 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,5 +9,5 @@ name = "frequenz_microgrid_component_graph_python_bindings" crate-type = ["cdylib"] [dependencies] -pyo3 = "0.29.0" +pyo3 = "0.29.3" frequenz-microgrid-component-graph = "0.6.4"