Will check it out, and try it, etc., and also try excluding python23.dll. Thanks Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...'----- Original Message ----- From: "Nick Stockton" <nstockton@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, August 27, 2011 10:47 AM Subject: Re: Fix/workaround for python py2exe build error/issue
You might also want to add 'python23.dll' to your list of excluded DLL files. I very much dout that you will need it, and excluding it will shave off about 1MB from the size of your executable. If you want to make the size of your executable even smaller, you should check out UPX on Source Forge.Nick Stockton On 8/26/2011 2:07 AM, Jacob Kruger wrote:Think this bit of information can actually be found on the py2exe FAQ for versions of python 2.6 and higher up, and it comes down to some of the following to be included in the setup.py code file. In the setup.py file,you assign/define the following variable higher up: dll_excludes = ['libgdk-win32-2.0-0.dll', 'libgobject-2.0-0.dll', 'tcl84.dll', 'tk84.dll', 'MSVCP90.dll', 'mswsock.dll', 'powrprof.dll'] and, then include a reference to it in the py2exe options dict: options = { "bundle_files": 1,"ascii": 1, # to make a smaller executable, don't include the encodings"compressed": 1, # compress the library archive "dll_excludes": dll_excludes, }and it now lets me build the executable .exe etc, and that MSVCP90.dll fileis still being copied to redist folder, etc., but main thing is build process now works, etc., so will now need/want to carry on trying out/testing things like wxPython and Q's wrapper for it etc.<smile> Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind