Hi,
Yes it is to be expected that building executables in different environments will result in different size and content executables.
The way to be sure that your built application was correctly built is to run the tests that you have written for your code – ideally on another machine or a Virtual Machine that has never had python/anaconda installed. You can get free official VMs from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ - personally I would go for the VirtualBox VM.
Steve Barnes
--
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...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyinstaller/cc10ab42-6160-4fb3-be84-3bf556c368c3%40googlegroups.com.
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
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/CADML7kc87ypLxL0Ki3418z7O2LW1NLtj5cz3zbfZEdbz5%3DtPug%40mail.gmail.com.