Hi Ani,

You to explain what pyinstaller is doing and why the sizes differ, in broad 
pyinstaller compiles (to byte code) the python source files, finds the 
libraries that are being used and bundles it all up into, effectively, zip file 
which is attached to a copy of the python executable in question itself and at 
least some of the base set of libraries (I am guessing about the base libraries 
being automatically included even if they aren’t used but that is the way that 
I would do it).

Now the python executable under 2.7-32 is 27,136 bytes on my system 3.8-32 is 
97,352 bytes so that is a start. I would also expect differences in the sizes 
of the libraries. Plus, of course, the minimum set of base libraries will 
possibly differ between versions and some of your installed choices may well 
hook themselves in as well which will result in different file inclusion 
choices.

Steve

From: [email protected] <[email protected]> On Behalf Of 
Aniruddha Shevade
Sent: 26 January 2020 04:21
To: [email protected]
Subject: Re: [PyInstaller] Basic question on application generated by 
Pyinstaller

Hi Steve
   Thanks for the response. Coming from a Java background, this is new to me. 
The script being compiled, should pick up exactly the same packages it needs in 
either environment. Why should its size differ ? And also why would the dist 
folder contain different contents in each case.
I would think just the needed packages should be packaged ( the versions of 
which might be different ) . But why would it package , DLLs which it does not  
need

Anyway , it does look like being a newbie   i have more to learn here. Thanks 
for your response, greatly appreciated.

Best Regards
Ani

On Fri, Jan 24, 2020 at 10:11 AM Aniruddha Shevade 
<[email protected]<mailto:[email protected]>> wrote:
Hi
 Please excuse me if this is a basic question. I am new to Pyinstaller.
I am running Pyinstaller to generate an executable on windows.
It does appear that for the same python script based on the environment i am 
using , it produces the executable of different size.

This is what i have done

1) Use Pyinstaller under Miniconda with Python 2.7
2) Use Pyinstaller with  Miniconda with Python 3.5.4

For each of these case for the same script file, we get a exe of different size 
and also the dist folder contains diferent contents

I am not sure if this is expected ?  How do i know if the application is 
correctly built? I

thanks for any help

Best Regards
Ani

--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/cc10ab42-6160-4fb3-be84-3bf556c368c3%40googlegroups.com<https://groups.google.com/d/msgid/pyinstaller/cc10ab42-6160-4fb3-be84-3bf556c368c3%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/CADML7kc87ypLxL0Ki3418z7O2LW1NLtj5cz3zbfZEdbz5%3DtPug%40mail.gmail.com<https://groups.google.com/d/msgid/pyinstaller/CADML7kc87ypLxL0Ki3418z7O2LW1NLtj5cz3zbfZEdbz5%3DtPug%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/VI1PR03MB4479E7C854F7E29838A106849B080%40VI1PR03MB4479.eurprd03.prod.outlook.com.

Reply via email to