pypy: don't allow abi to be adjusted by abi3 flag

This commit is contained in:
David Hewitt 2022-02-25 00:08:48 +00:00
parent b84309b67d
commit efbf92bd52
1 changed files with 5 additions and 0 deletions

View File

@ -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,