Skip to content

Commit

Permalink
Enable Zip64 Support for Large Wheel Files in Reproducible Mode (#1576)
Browse files Browse the repository at this point in the history
Co-authored-by: Ofek Lev <[email protected]>
  • Loading branch information
eitanV81 and ofek authored Nov 9, 2024
1 parent a664f3c commit 58c0982
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 58c0982

Please sign in to comment.