Sobre librerias graficas

Manuel Malo de Molina manuelmalo en gmail.com
Jue Mar 15 08:31:29 CET 2007


A mi con matplotlib me funciono esto (tendrias que añadirle lo de gtk):

from distutils.core import setupimport py2exefrom distutils.filelist
import findallimport osimport matplotlibmatplotlibdatadir =
matplotlib.get_data_path()matplotlibdata =
findall(matplotlibdatadir)matplotlibdata_files = []for f in
matplotlibdata:    dirname = os.path.join('matplotlibdata',
f[len(matplotlibdatadir)+1:])
matplotlibdata_files.append((os.path.split(dirname)[0], [f]))setup(
console=['test.py'],    options={             'py2exe': {
          'packages' : ['matplotlib', 'pytz'],                       }
           },    data_files=matplotlibdata_files)



Sacado de la web de py2exe: http://www.py2exe.org/index.cgi/MatPlotLib

Pero ojo si usas tambien numpy/numeric o scipy, dan muchisimos problemas.


Un saludo,
Manuel




Más información sobre la lista de distribución Python-es