diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..d47f983e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,11 @@ +[target.x86_64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] + +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] diff --git a/Cargo.lock b/Cargo.lock index 59908c8e..01f80bbf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -878,7 +878,6 @@ dependencies = [ "polars", "pyo3", "pyo3-asyncio", - "pyo3-build-config", "pyo3-polars", "tokio", ] diff --git a/crates/python/Cargo.toml b/crates/python/Cargo.toml index f276af72..25ad5a9b 100644 --- a/crates/python/Cargo.toml +++ b/crates/python/Cargo.toml @@ -1,6 +1,5 @@ [package] name = "cryo_python" -build = "build.rs" description = "cryo python is a python library built on top of the rust cryo library" version.workspace = true edition.workspace = true @@ -23,6 +22,3 @@ pyo3 = { workspace = true } pyo3-asyncio = { workspace = true } pyo3-polars = { workspace = true } tokio = { workspace = true } - -[build-dependencies] -pyo3-build-config = { workspace = true } diff --git a/crates/python/build.rs b/crates/python/build.rs deleted file mode 100644 index dace4a9b..00000000 --- a/crates/python/build.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - pyo3_build_config::add_extension_module_link_args(); -}