Commit e2e40c5
build: shrink the Linux wheel (strip libcef.so + compress) [cztomczak#262]
The rewritten build_distrib.py dropped two things that kept the Linux
wheel reasonable:
1. libcef.so symbol stripping. CEF ships it with ~1.1 GB of debug
symbols. Restore the pre-CMake reduce_package_size_issue262() step:
strip libcef.so on Linux (keeps .dynsym for linking). 1342 -> 252 MB
unpacked.
2. Wheel compression. zipfile.ZipInfo.from_file() defaults to
ZIP_STORED, so package files were written uncompressed despite the
ZIP_DEFLATED archive. Set compress_type = ZIP_DEFLATED so files are
actually compressed (libcef.so 252 -> 102 MB in the wheel).
Together the Linux wheel drops from ~356 MB to ~139 MB, comparable to
Windows/macOS. Verified: fresh-venv install + 85/85 unit tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 13c3592 commit e2e40c5
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
| |||
187 | 195 | | |
188 | 196 | | |
189 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
190 | 220 | | |
191 | 221 | | |
192 | 222 | | |
| |||
0 commit comments