The first step is to determine what in your dist folder is taking up all that space, then determining if you really need it or not.  If you decide you don't need it, then you work out how to exclude it.  Without knowing *what* you are trying to exclude though, there is no way we can help you work out *how*.
 
Cheers,
 
Mark.
-----Original Message-----
From: py2exe-users-bounces@lists.sourceforge.net [mailto:py2exe-users-bounces@lists.sourceforge.net]On Behalf Of Simon Kagwi
Sent: Tuesday, 3 July 2007 12:54 AM
To: py2exe-users@lists.sourceforge.net
Subject: [Py2exe-users] Py2exe with Matplotlib, wxPython and Numpy

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.