Skip to content

Commit c3a8d5a

Browse files
authored
Retry to fix win_lib_path again (RustPython#5076)
1 parent 0d0139b commit c3a8d5a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pylib/build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ fn main() {
1212

1313
if cfg!(windows) {
1414
if let Ok(real_path) = std::fs::read_to_string("Lib") {
15-
println!("cargo:rustc-env=win_lib_path={real_path:?}");
15+
let canonicalized_path = std::fs::canonicalize(real_path)
16+
.expect("failed to resolve RUSTPYTHONPATH during build time");
17+
println!(
18+
"cargo:rustc-env=win_lib_path={}",
19+
canonicalized_path.to_str().unwrap()
20+
);
1621
}
1722
}
1823
}

0 commit comments

Comments
 (0)