Skip to main content

default_stable_abi_config

Function default_stable_abi_config 

Source
fn default_stable_abi_config(
    host: &Triple,
    abi3_version: Option<PythonVersion>,
    abi3t_version: Option<PythonVersion>,
) -> Result<InterpreterConfig>
Expand description

Generates “default” interpreter configuration when compiling stable ABI extensions without a working Python interpreter.

abi3_version or abi3t_version specifies the minimum supported Stable ABI CPython version and which stable ABI to target.

This should work for most CPython extension modules when compiling on Windows, macOS and Linux.

Must be called from a PyO3 crate build script.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here