Thanks Thomas,

This is it! Thanks!
 I already had done it the hard way (by commenting the lines in the numpy modules were the __doc__ addition was used. Actually there were only six or seven lines in three different modules to modify. No that hard...).

The exe works now fine but requires to be compiled with option 'bundle_files': 3. With 'bundle files':1 I get the exe without any additional problem but then, it produces a windows error when executed. No more clues, it just hangs and produces the  Windows system error reporting window...

Just in case someone can give me advice on using "bundle:1", I attach below the test script and the updated setup.py that works


Thanks again!
Joaquin




Im using py2exe vs 0.6.8, matplotlib 0.98.1 and numpy 1.1. Python is active python 2.5.2.
Test Script:
from pylab import plot, show

if __name__=='__main__':
    a=[1,2,3,4,5]
    plot(a)
    show()


Setup.py:
from distutils.core import setup
import py2exe
import glob

import matplotlib

setup(
    console=['test.py'],
    options={
             'py2exe': {
                        'packages' : ['matplotlib', 'pytz'],
                        'excludes': ['_gtkagg', '_agg2', '_cairo', '_cocoaagg',
                                     '_fltkagg', '_gtk', '_gtkcairo', ],
                        'dll_excludes': ['libgdk_pixbuf-2.0-0.dll',
                                         'libgobject-2.0-0.dll',
                                         'libgdk-win32-2.0-0.dll',],
                        'compressed': 1,
                        'bundle_files': 3    #it crashes with 1   
                       }
            },
    zipfile = None,
    data_files = [(r'mpl-data', glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\*.*')),
                  (r'mpl-data', [r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc']),
                  (r'mpl-data\images',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\images\*.*')),
                  (r'mpl-data\fonts',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\fonts\*.*'))]

¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis! ¿Quieres los emoticonos y guiños más divertidos?