Skip to content

Compiled released .exe version is unnecessarily too big. #9

Description

@GustJc

The provided .exe in the releases is too big (27mb).
Using an almost clean pip I can generate a 10mb sized .exe here.

Even using pyinstaller --path and passing the virtualenv files, it still uses some of the packages installed on the main python installation for some reason.

Here is the command I'm using:
pyinstaller.exe --onefile -i='icon.ico' WebtoonReader.py --paths /d/Programs/WebtoonReader/WebtoonReader/webtoon_env/Lib/site-packages/

I was getting a 20Mb~ .exe file.
But when I uninstalled numpy from my global python 310 installation, the resulting .exe reduced to a 10 Mb file.

Not sure if this is intentional or a bug from pyinstaller. But I always thought if you specified a --paths arguments it should mean you don't want to use ANYTHING from the global python installation that is not vitally necessary. But that is not the case it seems.

Just creating this issue to keep a note that this problem exists and the final .exe can be reduced in size by quite a bit if you wanted it to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions