From bbe38b61890a07a5dbf84659de86459445d95f41 Mon Sep 17 00:00:00 2001 From: messense Date: Thu, 5 Jan 2023 17:03:43 +0800 Subject: [PATCH] Remove confusing libpython.so from cross compile error message --- src/cross_compile.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cross_compile.rs b/src/cross_compile.rs index c5bfc9841..188fb0729 100644 --- a/src/cross_compile.rs +++ b/src/cross_compile.rs @@ -133,10 +133,7 @@ pub fn find_sysconfigdata(lib_dir: &Path, target: &Target) -> Result { .collect::>(); 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 \