From b2d2b9cdcfb17c7669c37f728ed914607fd5ec83 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 19 Mar 2023 08:54:51 +0800 Subject: [PATCH] refactor(bindings/python): only enable `pyo3/entension-module` feature when building with maturin --- bindings/python/Cargo.toml | 2 +- bindings/python/pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 9b57b252b5c1..db58fe3f3485 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -34,6 +34,6 @@ name = "opendal" chrono = { version = "0.4.24", default-features = false, features = ["std"] } futures = "0.3.27" opendal = { version = "0.30", path = "../../core" } -pyo3 = { version = "0.18", features = ["extension-module", "chrono"] } +pyo3 = { version = "0.18", features = ["chrono"] } pyo3-asyncio = { version = "0.18", features = ["tokio-runtime"] } tokio = "1" diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 052b9187ea5a..1eacb7362700 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -38,3 +38,6 @@ test = ["behave"] Documentation = "https://docs.rs/opendal/" Homepage = "https://opendal.apache.org/" Repository = "https://github.com/apache/incubator-opendal" + +[tool.maturin] +features = ["pyo3/extension-module"]