From c530b49936d27c54be9930e336dd0f0903310e06 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 31 Oct 2022 18:16:43 +0800 Subject: [PATCH] Fix auditwheel libpython check on Python 3.7 and older versions --- Changelog.md | 1 + src/auditwheel/audit.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 4fc2ba639..a6711d4c8 100644 --- a/Changelog.md +++ b/Changelog.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Add Python metadata support for `license-file` field of `Cargo.toml` in [#1195](https://github.com/PyO3/maturin/pull/1195) * Upgrade to clap 4.0 in [#1197](https://github.com/PyO3/maturin/pull/1197). This bumps MSRV to 1.61.0. * Remove `workspace.members` in `Cargo.toml` from sdist if there isn't any path dependency in #[1227](https://github.com/PyO3/maturin/pull/1227) +* Fix auditwheel `libpython` check on Python 3.7 and older versions in [#1229](https://github.com/PyO3/maturin/pull/1229) ## [0.13.7] - 2022-10-29 diff --git a/src/auditwheel/audit.rs b/src/auditwheel/audit.rs index c56e985dc..962cb6a27 100644 --- a/src/auditwheel/audit.rs +++ b/src/auditwheel/audit.rs @@ -212,7 +212,7 @@ fn policy_is_satisfied( )); } // Check for libpython and forbidden libraries - let is_libpython = Regex::new(r"^libpython3\.\d+\.so\.\d+\.\d+$").unwrap(); + let is_libpython = Regex::new(r"^libpython3\.\d+m?u?\.so\.\d+\.\d+$").unwrap(); let offenders: Vec = offending_libs.into_iter().collect(); match offenders.as_slice() { [] => Ok(()),