Skip to content

Commit 4700f31

Browse files
committed
Fix test failing from PyO3/pyo3#341
# Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
1 parent e72b6f5 commit 4700f31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rust/engine/engine_pyo3/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ default = []
2020
[dependencies]
2121
hashing = { path = "../hashing" }
2222
parking_lot = "0.11"
23-
pyo3 = { version = "0.13", features = ["extension-module"] }
23+
# We must disable the `auto-initialize` feature because we do not enable `extension-module` normally
24+
# (see above comment in `features`), so `auto-initialize` would try to link to a static Python interpreter during
25+
# tests, which may fail. However, we need to then re-activate the `macros` feature. See
26+
# https://pyo3.rs/v0.13.2/features.html
27+
pyo3 = { version = "0.13", default-features = false, features = ["macros"] }
2428
task_executor = { path = "../task_executor" }
2529
testutil_mock = { package = "mock", path = "../testutil/mock" }

0 commit comments

Comments
 (0)