Browse Source

makewheel: Fix huge .whl files due to lack of compression for some files

Regression from 1f106a0a2a26c2db3860f8c0ff95deeddde99e8a

[skip ci]
rdb 3 years ago
parent
commit
b7fc80d6cc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      makepanda/makewheel.py

+ 1 - 0
makepanda/makewheel.py

@@ -562,6 +562,7 @@ class WheelFile(object):
             print("Adding {0} from {1}".format(target_path, orig_source_path))
             print("Adding {0} from {1}".format(target_path, orig_source_path))
 
 
         zinfo = zipfile.ZipInfo.from_file(source_path, target_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:
         if zinfo.date_time > self.max_date_time:
             zinfo.date_time = self.max_date_time
             zinfo.date_time = self.max_date_time