From b7fc80d6ccc7f0f96ca729cfd80c0ea5155668d8 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 10 Jan 2022 15:42:49 +0100 Subject: [PATCH] makewheel: Fix huge .whl files due to lack of compression for some files Regression from 1f106a0a2a26c2db3860f8c0ff95deeddde99e8a [skip ci] --- makepanda/makewheel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index c7ebee03b7..2ebfd8efe7 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -562,6 +562,7 @@ class WheelFile(object): print("Adding {0} from {1}".format(target_path, orig_source_path)) zinfo = zipfile.ZipInfo.from_file(source_path, target_path) + zinfo.compress_type = self.zip_file.compression if zinfo.date_time > self.max_date_time: zinfo.date_time = self.max_date_time