Skip to content

Commit

Permalink
Merge pull request #1389 from messense/refine-cross-compile-error-mes…
Browse files Browse the repository at this point in the history
…sage

Remove confusing libpython.so from cross compile error message
  • Loading branch information
messense authored Jan 5, 2023
2 parents 83b428f + bbe38b6 commit 4d9cc9a
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 4d9cc9a

Please sign in to comment.