Skip to content

Commit

Permalink
Merge pull request #127 from tanj/issue118
Browse files Browse the repository at this point in the history
fix: tar.gz extracting files without mtime breaking wheel builds
  • Loading branch information
David-OConnor committed Jun 18, 2021
2 parents a0f5bb6 + bec3af8 commit 580faee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/install.rs
Expand Up @@ -249,6 +249,10 @@ pub fn download_and_install_package(
let tar = GzDecoder::new(&archive_file);
let mut archive = Archive::new(tar);

// Some python archives don't have file create times set which
// breaks wheel builds. Don't preserve mtime fixes this.
archive.set_preserve_mtime(false);

// We iterate over and copy entries instead of running `Archive.unpack`, since
// symlinks in the archive may cause the unpack to break. If this happens, we want
// to continue unpacking the other files.
Expand Down

0 comments on commit 580faee

Please sign in to comment.