Skip to content

Commit

Permalink
support large wheel files in reproducible mode
Browse files Browse the repository at this point in the history
Update wheel.py to support reproducible for large zip files
update file size for zinfo to recognize if zip64 is needed.
  • Loading branch information
eitanV81 committed Jun 19, 2024
1 parent 64005a2 commit fdcdb63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/hatchling/builders/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ def add_file(self, included_file: IncludedFile) -> tuple[str, str, str]:
set_zip_info_mode(zip_info, new_mode)
if stat.S_ISDIR(file_stat.st_mode): # no cov
zip_info.external_attr |= 0x10
else:
zip_info.file_size = file_stat.st_size
else:
zip_info = zipfile.ZipInfo.from_file(included_file.path, relative_path)

Expand Down

0 comments on commit fdcdb63

Please sign in to comment.