Skip to main content

is_extension_module

Function is_extension_module 

Source
pub fn is_extension_module() -> bool
Expand description

Checks if the extension-module feature is enabled for the PyO3 crate.

This can be triggered either by:

  • The extension-module Cargo feature (deprecated)
  • Setting the PYO3_BUILD_EXTENSION_MODULE environment variable

Must be called from a PyO3 crate build script.

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