making executables smaller
Carter Temm
crtbraille at gmail.com
Tue Jul 26 20:45:27 EDT 2016
OK. So I guess the question should be, how can I make these executables smaller in general?
Sent from my iPhone
> On Jul 26, 2016, at 5:13 PM, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>
> On Tue, 26 Jul 2016 12:22:16 -0500, Carter Temm <crtbraille at gmail.com>
> declaimed the following:
>
>> Hi,
>> I’m writing a couple different projects at the moment, and when I compile it into a single executable using pyinstaller, it becomes extremely large. I’m guessing this is because of the modules used. Because I’m not that skilled at python, I put stuff like for example, import sys. I imagine the final project could be made smaller
> by specifying from something import something_else. but the thing is, I don’t know what smaller I could import with these set of modules. Is there a program that could tell me this. Sorry if this question is really basic, but it’d be helpful.
>
> "from module import name" still has to include the entire module --
> since that is the file. It is effectively the same as doing
>
> import module
> name = module.name
> del module
>
> Also -- anything that creates an executable file for Python will be
> including the Python interpreter ITSELF. That may be a lot of the bloat you
> see.
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfraed at ix.netcom.com HTTP://wlfraed.home.netcom.com/
>
> --
> https://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list