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 authored and messense committed Mar 31, 2022
1 parent d1c5af9 commit fb89600
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 @@ -1177,6 +1177,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 fb89600

Please sign in to comment.