build: allow zip files to be created larger than 2GB

This commit is contained in:
Samuel Attard 2019-03-21 23:42:24 -07:00
parent 515c927b14
commit 30448bb1b8

View file

@ -52,7 +52,7 @@ def main(argv):
if sys.platform == 'darwin':
execute(['zip', '-r', '-y', dist_zip] + list(dist_files))
else:
with zipfile.ZipFile(dist_zip, 'w', zipfile.ZIP_DEFLATED) as z:
with zipfile.ZipFile(dist_zip, 'w', zipfile.ZIP_DEFLATED, True) as z:
for dep in dist_files:
if skip_path(dep, dist_zip, target_cpu):
continue