Skip to content

Commit

Permalink
Remove confusing libpython.so from cross compile error message
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jan 5, 2023
1 parent 83b428f commit bbe38b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cross_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ pub fn find_sysconfigdata(lib_dir: &Path, target: &Target) -> Result<PathBuf> {
.collect::<Vec<PathBuf>>();
sysconfig_paths.dedup();
if sysconfig_paths.is_empty() {
bail!(
"Could not find either libpython.so or _sysconfigdata*.py in {}",
lib_dir.display()
);
bail!("Could not find _sysconfigdata*.py in {}", lib_dir.display());
} else if sysconfig_paths.len() > 1 {
bail!(
"Detected multiple possible python versions, please set the PYO3_PYTHON_VERSION \
Expand Down

0 comments on commit bbe38b6

Please sign in to comment.