diff --git a/python/Cargo.toml b/python/Cargo.toml index 3cacf9bc..a63d6c89 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -18,15 +18,17 @@ name = "pyoxigraph" doctest = false [features] -default = ["native-tls"] abi3 = ["pyo3/abi3-py38"] -native-tls = ["oxigraph/http-client-native-tls"] rocksdb-pkg-config = ["oxigraph/rocksdb-pkg-config"] -rustls = ["oxigraph/http-client-rustls-native"] [dependencies] -oxigraph.path = "../lib" pyo3 = { version = "0.20.1", features = ["extension-module"] } +[target.'cfg(any(target_family = "windows", target_os = "macos", target_os = "ios"))'.dependencies] +oxigraph = { path = "../lib", features = ["http-client-native-tls"] } + +[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios")))'.dependencies] +oxigraph = { path = "../lib", features = ["http-client-rustls-native"] } + [lints] workspace = true diff --git a/python/README.md b/python/README.md index c8478a60..d9fae275 100644 --- a/python/README.md +++ b/python/README.md @@ -32,8 +32,8 @@ Pyoxigraph documentation is [available on the Oxigraph website](https://pyoxigra To build and install the development version of pyoxigraph you need to clone this git repository including submodules (`git clone --recursive https://github.com/oxigraph/oxigraph.git`) and to run `pip install .` in the `python` directory (the one this README is in). -Note that by default the installation will not use [cpython stable ABI](https://docs.python.org/3/c-api/stable.html) and will rely on the host TLS implementation. -Use `--features abi3` feature to use cpython stable ABI and use `--no-default-features --features rustls` to use [rustls](https://github.com/rustls/rustls) with the system certificates. +Note that by default the installation will not use [cpython stable ABI](https://docs.python.org/3/c-api/stable.html). +Use `--features abi3` feature to use cpython stable ABI. ## Help