Hi,
I have an application that uses Numpy, wxPython and matplotlib. I have managed to create an exe, and the dist folder's size is 66Mb, yet I have a lot of excludes and I am using zipfile:
 
setup(windows=[cget],
      options = {'py2exe': {    'includes': ['matplotlib.numerix.random_array'],
                                "excludes": ["MySQLdb", "Tkconstants", "Tkinter", "tcl", "email", "curse", "matplotlib.backends.backend_tkagg",
                                             "matplotlib.backends.backend_gtk", "matplotlib.backends.backend_gdk",
                                             "matplotlib.backends.backend_qt", "matplotlib.backends.backend_qt4",
                                             "matplotlib.backends.backend_gtkagg", "matplotlib.backends.backend_pdf",
                                             "matplotlib.backends.backend_ps", "matplotlib.backends.backend_qtagg",
                                             "matplotlib.backends.backend_qt4agg", "matplotlib.backends._ns_backend_gdk",
                                             "matplotlib.backends._nc_backend_gdk", "matplotlib.backends._na_backend_gdk",
                                             "matplotlib.backends._gtkagg"],
                                "packages": ["encodings", "matplotlib.numerix", "pytz"],      
                                'dll_excludes': ['libgdk-win32-2.0-0.dll','libgobject-2.0-0.dll',"tcl84.dll", "tk84.dll"],
                                'typelibs':[('{565783C6-CB41-11D1-8B02-00600806D9B6}', 0, 1, 2)],
                                      # create a compressed zip archive
                                'compressed': 1,
                                'optimize': 0,
                          }
                   },
 
What else can I exclude to make the distribution smaller?


Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.