Skip to content

Commit

Permalink
pypy: don't allow abi to be adjusted by abi3 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Feb 25, 2022
1 parent b84309b commit efbf92b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyo3-build-config/src/impl_.rs
Expand Up @@ -1246,6 +1246,11 @@ fn fixup_config_for_abi3(
config: &mut InterpreterConfig,
abi3_version: Option<PythonVersion>,
) -> Result<()> {
// PyPy doesn't support abi3; don't adjust the version
if config.implementation.is_pypy() {
return Ok(());
}

if let Some(version) = abi3_version {
ensure!(
version <= config.version,
Expand Down

0 comments on commit efbf92b

Please sign in to comment.