Using Matplotlib 0.87.3 (wxAgg backend), NumPy 0.9.8, SciPy 0.4.9, wxPython unicode.2.6.3.2, python 2.4.3 the following setup.py worked well with py2exe 0.6.5 on Widows XP:
#-------------------------------------------------------------- from distutils.core import setup import py2exe import glob data = glob.glob(r'C:Documents and Settings\Apa\.matplotlib\*') data.append(r'C:\Documents and Settings\Apa\.matplotlib\matplotlibrc') includes = ['matplotlib.numerix.random_array', 'pytz.zoneinfo.UTC', 'scipy.misc.info'] excludes = ['Tkinter'] opts = { "py2exe": { 'skip_archive': 1, 'includes': includes, 'excludes': excludes, 'packages': ['numpy'], } } setup( windows = [ { "script": 'Wynne.py', "icon_resources": [(1, 'THz.ico')] } ], data_files = [('matplotlibdata', data)], options = opts ) #-------------------------------------------------------------- Regards, Géza -- Géza Groma Institute of Biophysics Biological Research Center of the Hungarian Academy of Sciences Temesvári krt. 62. 6701 Szeged, Hungary phone: +36 62 599 620 fax: +36 62 433 133 cellular: +36 20 5648 303 On 6/28/06, James Carroll <[EMAIL PROTECTED]> wrote: > Hi I read on the py2exe wiki that the 0.83 line creates huge > distributions because of trouble excluding backends that are not > wanted. > ( http://starship.python.net/crew/theller/moin.cgi/MatPlotLib ) > > I do need to have a small distribution on windows. Which version of > matplotlib was the last to play nicely with py2exe? > > Has anyone had any luck with 0.83.3 and excluding tk and gtk backends? > (I'm using wx) > > I'm also getting a strange dependancy on the unicode version of > wxPython, when I'm using the non-unicode version, and that's adding > another 5MB onto my distro. > > Thanks, > -Jim > > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users