Skip to content

Commit

Permalink
Fix auditwheel libpython check on Python 3.7 and older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Oct 31, 2022
1 parent 1ec3bb3 commit ed70fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auditwheel/audit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = offending_libs.into_iter().collect();
match offenders.as_slice() {
[] => Ok(()),
Expand Down

0 comments on commit ed70fde

Please sign in to comment.