diff --git a/Changelog.md b/Changelog.md index a517238b4..ed8f0984c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +* Fix finding interpreters from bundled sysconfigs in [#1598](https://github.com/PyO3/maturin/pull/1598) + ## [0.15.0] - 2023-05-07 * **Breaking Change**: Build with `--no-default-features` by default when bootstrapping from sdist in [#1333](https://github.com/PyO3/maturin/pull/1333) diff --git a/src/python_interpreter/mod.rs b/src/python_interpreter/mod.rs index 71ed59e20..7d335b4f5 100644 --- a/src/python_interpreter/mod.rs +++ b/src/python_interpreter/mod.rs @@ -704,7 +704,7 @@ impl PythonInterpreter { .filter_map(|config| match requires_python { Some(requires_python) => { if requires_python - .contains(&Version::from_release(vec![config.major, config.major])) + .contains(&Version::from_release(vec![config.major, config.minor])) { Some(Self::from_config(config)) } else {