Thanks for the tip, I had not tried that.  I installed UPX (version 3.96 
from home-brew) and it saved me a whopping 0.0001 percent.  The single file 
binary for "hello world" went from 5870240 bytes to 5870233 bytes.
On Saturday, March 6, 2021 at 8:13:33 AM UTC-8 Pax Williams wrote:

> Have you tried using UPX?
>
> https://pyinstaller.readthedocs.io/en/stable/usage.html#using-upx
>
> On Tuesday, December 29, 2020 at 12:56:09 AM UTC-8 elliott...@gmail.com 
> wrote:
>
>> Even for a very simple python code, PyInstaller adds a lot of extra 
>> files.  Is there a recommended way to remove some of this to make the app 
>> smaller?  For example, a Python code with just one line:
>>
>> print('Hello world.')
>>
>> The app package is 13.5 MB on macOS, or 5.9MB in one-file mode.  Some of 
>> the largest files in the package are:
>> libcrypto.1.1.dylib 2.8M
>> unicodedata.cpython-37m-darwin.so 1.1M
>> libssl.1.1.dylib 556K
>> libncursesw.5.dylib 433K
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/d7e9c2de-749b-4667-8fd6-8f54f73044ean%40googlegroups.com.

Reply via email to