Skip to content

Commit aafb0bf

Browse files
committed
fix(ci): decouple pyo3 extension-module from base dependencies so cargo test links cleanly on Linux
1 parent 19c2ab6 commit aafb0bf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ crate-type = ["cdylib"]
1818

1919
# Feature flags for optional infrastructure
2020
[features]
21-
default = ["opencl", "cuda"]
21+
default = ["opencl", "cuda", "extension-module"]
2222
opencl = ["ocl"]
2323
cuda = ["libloading"]
24+
extension-module = ["pyo3/extension-module"]
2425
prometheus = ["metrics-exporter-prometheus"]
2526
grpc = ["tonic", "tonic-prost", "prost", "tokio", "prometheus", "sha2"]
26-
full = ["opencl", "cuda", "grpc"]
27+
full = ["opencl", "cuda", "grpc", "extension-module"]
2728
# A9-05: build against the CPython stable ABI so one wheel per platform serves
2829
# every supported interpreter (>=3.9, matching `requires-python`), instead of
2930
# five near-identical wheels per platform. Release builds enable this; local
3031
# `maturin develop` does not need it.
3132
abi3 = ["pyo3/abi3-py39"]
3233

3334
[dependencies]
34-
pyo3 = { version = "0.29.0", features = ["extension-module", "auto-initialize"] }
35+
pyo3 = "0.29.0"
3536
numpy = "0.29.0"
3637
ndarray = { version = "0.17", features = ["rayon"] }
3738
rayon = "1.12"

0 commit comments

Comments
 (0)