Skip to content

Commit

Permalink
Merge pull request #6 from ijl/compress
Browse files Browse the repository at this point in the history
Compress wheels using deflate
  • Loading branch information
konstin authored Sep 23, 2018
2 parents 2f0c8a9 + a18d67f commit da09811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl ModuleWriter for WheelWriter {
let target = target.as_ref().to_str().unwrap().replace("\\", "/");
let options = zip::write::FileOptions::default()
.unix_permissions(permissions)
.compression_method(zip::CompressionMethod::Stored);
.compression_method(zip::CompressionMethod::Deflated);
self.zip.start_file(target.clone(), options)?;
self.zip.write_all(&bytes)?;

Expand Down Expand Up @@ -204,7 +204,7 @@ impl WheelWriter {
/// Creates the record file and finishes the zip
pub fn finish(mut self) -> Result<PathBuf, io::Error> {
let options =
zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Stored);
zip::write::FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
let record_file = self.dist_info_dir.join("RECORD");
self.zip
.start_file(record_file.to_str().unwrap(), options)?;
Expand Down

0 comments on commit da09811

Please sign in to comment.