4 Commits

Author SHA1 Message Date
Campbell Barton
5fe261c89d Cleanup: declare __all__ for many scripts in tools/ 2025-01-04 20:27:58 +11:00
Campbell Barton
d549436dfa Cleanup: minor tweaks to wheel_cleanup.py
- Use result of argparse parsing (was ignored).
- Replace comment with doc-string, used for `--help`.
- Add license header.
- Make executable.
2024-11-27 19:01:04 +11:00
Campbell Barton
0de8ae8046 Cleanup: spelling in comments 2024-11-25 13:24:46 +11:00
Sergey Sharybin
f0e098cbfb Tools: Add cleaner of bpy install folder for wheel
The goal of this cleaner is to replace all libraries that are symbolic
link with a regular files, and remove all library files that are not
actually used.

This circumvents the situation when wheel packing converts symbolic
links (libraries with ABI in their names) to regular files due to the
limitation of the zip archives. Doing a manual cleanup pass allows to
run regression tests after the cleanup is done. It is implemented as
as standalone tool so that it can be invoked when it is really needed.

In practice this lowers Linux bpy wheel file size from 540 MB down to
around 362 MB.

Pull Request: https://projects.blender.org/blender/blender/pulls/130623
2024-11-21 09:53:36 +01:00