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

Regression from 1f106a0a2a

[skip ci]
This commit is contained in:
rdb 2022-01-10 15:42:49 +01:00
parent 440b2c48b8
commit b7fc80d6cc
1 changed files with 1 additions and 0 deletions

View File

@ -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