Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ fn cargo_build_command(
}
}

if let Some(lib_dir) = env::var_os("MATURIN_PYTHON_SYSCONFIGDATA_DIR") {
if let Some(lib_dir) = env::var_os("PYO3_CROSS_LIB_DIR") {
build_command.env("PYO3_CROSS_LIB_DIR", lib_dir);
}
Comment thread
ririv marked this conversation as resolved.
Outdated

Expand Down
4 changes: 4 additions & 0 deletions src/python_interpreter/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ suppress_build_script_link_lines=false"#,
if let Some(pointer_width) = self.pointer_width {
write!(content, "\npointer_width={pointer_width}").unwrap();
}
if let Ok(lib_dir) = std::env::var("PYO3_CROSS_LIB_DIR") {
write!(content, "\nlib_dir={}", lib_dir).unwrap();
write!(content, "\nlibs=python{}.{}", self.major, self.minor).unwrap();
Comment thread
ririv marked this conversation as resolved.
Outdated
}
content
}
}
Expand Down
Loading