I currently have a frozen binary created out of a PySide2 python program using PyInstaller, and it ends up having a very large file size. A script as small as a PySide2 window with Hello World can reach over 40MBs in size.
There are many unused bindings of PySide2 that are being included in the binary, and I've been wondering if there's any modern solution for stripping them from the frozen binary.
After a quick search, I only managed to find a tool called Hatchet from a library called PySideKick, but it's been unmaintained for years, and probably is not suitable for use with PySide2 or Python 3.