| 1 | use pyo3_build_config::PythonVersion; |
|---|---|
| 2 | |
| 3 | pub fn is_abi3_before(major: u8, minor: u8) -> bool { |
| 4 | let config: &'static InterpreterConfig = pyo3_build_config::get(); |
| 5 | config.abi3 && config.version < PythonVersion { major, minor } |
| 6 | } |
| 7 |
| 1 | use pyo3_build_config::PythonVersion; |
|---|---|
| 2 | |
| 3 | pub fn is_abi3_before(major: u8, minor: u8) -> bool { |
| 4 | let config: &'static InterpreterConfig = pyo3_build_config::get(); |
| 5 | config.abi3 && config.version < PythonVersion { major, minor } |
| 6 | } |
| 7 |