Remove `libpython.so` from cross compile error message
This commit is contained in:
parent
09470eb42c
commit
7e89456c77
|
@ -1164,10 +1164,7 @@ fn find_sysconfigdata(cross: &CrossCompileConfig) -> Result<Option<PathBuf>> {
|
||||||
let mut sysconfig_paths = find_all_sysconfigdata(cross);
|
let mut sysconfig_paths = find_all_sysconfigdata(cross);
|
||||||
if sysconfig_paths.is_empty() {
|
if sysconfig_paths.is_empty() {
|
||||||
if let Some(lib_dir) = cross.lib_dir.as_ref() {
|
if let Some(lib_dir) = cross.lib_dir.as_ref() {
|
||||||
bail!(
|
bail!("Could not find _sysconfigdata*.py in {}", lib_dir.display());
|
||||||
"Could not find either libpython.so or _sysconfigdata*.py in {}",
|
|
||||||
lib_dir.display()
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
// Continue with the default configuration when PYO3_CROSS_LIB_DIR is not set.
|
// Continue with the default configuration when PYO3_CROSS_LIB_DIR is not set.
|
||||||
return Ok(None);
|
return Ok(None);
|
||||||
|
|
Loading…
Reference in New Issue