diff --git a/Cargo.lock b/Cargo.lock index add89c712..62fe4575d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8055,9 +8055,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.22.4" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00e89ce2565d6044ca31a3eb79a334c3a79a841120a98f64eea9f579564cb691" +checksum = "3d922163ba1f79c04bc49073ba7b32fd5a8d3b76a87c955921234b8e77333c51" dependencies = [ "cfg-if", "indoc", @@ -8073,9 +8073,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.22.4" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8afbaf3abd7325e08f35ffb8deb5892046fcb2608b703db6a583a5ba4cea01e" +checksum = "bc38c5feeb496c8321091edf3d63e9a6829eab4b863b4a6a65f26f3e9cc6b179" dependencies = [ "once_cell", "target-lexicon", @@ -8083,9 +8083,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.22.4" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec15a5ba277339d04763f4c23d85987a5b08cbb494860be141e6a10a8eb88022" +checksum = "94845622d88ae274d2729fcefc850e63d7a3ddff5e3ce11bd88486db9f1d357d" dependencies = [ "libc", "pyo3-build-config", @@ -8093,9 +8093,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.22.4" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15e0f01b5364bcfbb686a52fc4181d412b708a68ed20c330db9fc8d2c2bf5a43" +checksum = "e655aad15e09b94ffdb3ce3d217acf652e26bbc37697ef012f5e5e348c716e5e" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -8105,9 +8105,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.22.4" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a09b550200e1e5ed9176976d0060cbc2ea82dc8515da07885e7b8153a85caacb" +checksum = "ae1e3f09eecd94618f60a455a23def79f79eba4dc561a97324bf9ac8c6df30ce" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -13154,6 +13154,7 @@ dependencies = [ "bitcoind", "musig2", "pyo3", + "pyo3-build-config", "reth-primitives", "shrex", "strata-btcio", diff --git a/crates/util/python-utils/Cargo.toml b/crates/util/python-utils/Cargo.toml index 98e2e9216..1b609003f 100644 --- a/crates/util/python-utils/Cargo.toml +++ b/crates/util/python-utils/Cargo.toml @@ -18,12 +18,15 @@ bdk_bitcoind_rpc = "0.16.0" bdk_wallet = "1.0.0-beta.5" # "abi3-py310" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.10 musig2.workspace = true -pyo3 = { version = "0.22.4", features = ["extension-module", "abi3-py310"] } +pyo3 = { version = "0.22.5", features = ["extension-module", "abi3-py310"] } reth-primitives.workspace = true # Internal crates shrex = { version = "0.1.0", path = "../shrex", features = ["serde"] } +[build-dependencies] +pyo3-build-config = "0.22.5" + [dev-dependencies] anyhow.workspace = true bitcoind.workspace = true diff --git a/crates/util/python-utils/build.rs b/crates/util/python-utils/build.rs new file mode 100644 index 000000000..56431b9c5 --- /dev/null +++ b/crates/util/python-utils/build.rs @@ -0,0 +1,6 @@ +//! Needed for MacOS to link the Python library. +//! See: https://pyo3.rs/v0.14.2/building_and_distribution.html#macos + +fn main() { + pyo3_build_config::add_extension_module_link_args(); +}