From ed70fdecd146576eef4e0b54f8faacea23730c6f 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 --- src/auditwheel/audit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(()),