Skip to content

Commit 33c05bb

Browse files
charlottiawhitequark
authored andcommitted
Don't include doc/ in the wheel.
Fixes #14. Reduces .whl size by ~6MB, and extracted size by ~45MB.
1 parent afa0992 commit 33c05bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

make_wheels.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def write_ziglang_wheel(out_dir, *, version, platform, archive):
107107
entry_name = '/'.join(entry_name.split('/')[1:])
108108
if not entry_name:
109109
continue
110+
if entry_name.startswith('doc/'):
111+
continue
110112

111113
zip_info = ZipInfo(f'ziglang/{entry_name}')
112114
zip_info.external_attr = (entry_mode & 0xFFFF) << 16

0 commit comments

Comments
 (0)