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 971d77a commit 5d7d8e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyo3-build-config/src/impl_.rs
Original file line number Diff line number Diff line change
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 5d7d8e1

Please sign in to comment.