From 7e89456c775dd02ae44fde1b4436dd6953b152c8 Mon Sep 17 00:00:00 2001 From: messense Date: Thu, 5 Jan 2023 17:07:21 +0800 Subject: [PATCH] Remove `libpython.so` from cross compile error message --- pyo3-build-config/src/impl_.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pyo3-build-config/src/impl_.rs b/pyo3-build-config/src/impl_.rs index fa085cd3257..2f0f5afda13 100644 --- a/pyo3-build-config/src/impl_.rs +++ b/pyo3-build-config/src/impl_.rs @@ -1164,10 +1164,7 @@ fn find_sysconfigdata(cross: &CrossCompileConfig) -> Result> { let mut sysconfig_paths = find_all_sysconfigdata(cross); if sysconfig_paths.is_empty() { if let Some(lib_dir) = cross.lib_dir.as_ref() { - 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 { // Continue with the default configuration when PYO3_CROSS_LIB_DIR is not set. return Ok(None);