Skip to content

Commit 36dc451

Browse files
author
github-actions
committed
[docs] @Breakthrough: Update Documentation
Source: 4.x-cuda (ec3dea1)
1 parent 94c86bf commit 36dc451

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

workflow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ gh run view <run-id> -R Breakthrough/opencv-python-cuda
106106

107107
---
108108

109+
## Wheel Compression
110+
111+
The build workflow repacks the output wheel using LZMA (`ZIP_LZMA`) compression instead of the default DEFLATE. This reduces the wheel size by ~35%, which is necessary to stay under the 2 GiB GitHub release file size limit.
112+
113+
While the [wheel spec (PEP 427)](https://peps.python.org/pep-0427/) defines wheels as ZIP archives, it does not specify which ZIP compression methods are permitted. In practice, LZMA works because both pip and uv delegate decompression to their respective ZIP libraries (Python's `zipfile` module and Rust's `zip` crate), both of which support LZMA natively. This has been verified with pip (anything compatible the standard [`zipfile` module](https://docs.python.org/3/library/zipfile.html)) and uv (which uses the [`zip` crate](https://crates.io/crates/zip)).
114+
115+
---
116+
109117
## Reference: Git Config for Remotes
110118

111119
After setup, your `.git/config` remote sections should look like:

0 commit comments

Comments
 (0)