Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress wheels using deflate #6

Merged
merged 1 commit into from
Sep 23, 2018
Merged
Changes from all commits
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
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