pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.11k stars 309 forks source link

Packing large wheel files fails in reproducible mode due to lack of Zip64 support. #1719

Closed eitanV81 closed 2 weeks ago

eitanV81 commented 2 months ago

When attempting to build large wheel files in reproducible mode, the process fails due to the lack of Zip64 support. The error occurs because the ZIP file metadata (zinfo) is not correctly populated with the file size information, causing the packaging system to skip the necessary Zip64 extensions. This results in the failure of the packaging process for wheel files that exceed the 4 GB size limit imposed by the standard ZIP format.

created simple PR to fix it: https://github.com/pypa/hatch/pull/1576

extraymond commented 2 months ago

+1, also bumped into this when using hatchling as backend for uv managed projects.

The PR @eitanV81 created allows large wheels to work.

[build-system]
requires = [
  "hatchling @ https://github.com/eitanV81/hatch.git#subdirectory=backend",
]
build-backend = "hatchling.build"
ofek commented 2 weeks ago

https://github.com/pypa/hatch/pull/1576