Remove `libpython.so` from cross compile error message

This commit is contained in:
messense 2023-01-05 17:07:21 +08:00
parent 09470eb42c
commit 7e89456c77
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9
1 changed files with 1 additions and 4 deletions

View File

@ -1164,10 +1164,7 @@ fn find_sysconfigdata(cross: &CrossCompileConfig) -> Result<Option<PathBuf>> {
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);