Skip to content

Commit 6a1fd91

Browse files
committed
Win: Ignore missing unixccompiler.py
1 parent de9a4e5 commit 6a1fd91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyoxidizer/src/py_packaging/distutils.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ pub fn prepare_hacked_distutils(logger: &slog::Logger, target: &PythonPaths) {
5858
for (path, data) in MODIFIED_DISTUTILS_FILES.iter() {
5959
let dest_path = dest_distutils_path.join(path);
6060

61+
if !dest_path.exists() {
62+
warn!(logger, "not updating missing distutils/{}", path);
63+
continue;
64+
}
65+
6166
warn!(logger, "modifying distutils/{} for oxidation", path);
6267
std::fs::write(dest_path, data).unwrap();
6368
}

0 commit comments

Comments
 (0)