Fix/workaround for python py2exe build error/issue

  • From: Jacob Kruger <jacobk@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Fri, 26 Aug 2011 11:07:50 +0200

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 file
is 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

Other related posts: