wxPython 으로 작업한 파일을 py2exe 로, setup.py

온갖 실행 에러를 보정해서 만든,

msvcp90.dll 파일은 다운받아서 python2.7/DLLs에 넣으면 된다.

>> python setup.py py2exe

from distutils.core import setup
import Tkinter
import py2exe
import numpy
import matplotlib
import scipy
import FileDialog

setup(
    #console=["mod2.py"]
    windows=["module2.py"],
          options={
               'py2exe': {
                          'packages' :  ['matplotlib', 'pytz'],
                          'dll_excludes': ['libgdk-win32-2.0-0.dll',
                                         'libgobject-2.0-0.dll',
                                         'libgdk_pixbuf-2.0-0.dll',
                                         'libgtk-win32-2.0-0.dll',
                                         'libglib-2.0-0.dll',
                                         'libcairo-2.dll',
                                         'libpango-1.0-0.dll',
                                         'libpangowin32-1.0-0.dll',
                                         'libpangocairo-1.0-0.dll',
                                         'libglade-2.0-0.dll',
                                         'libgmodule-2.0-0.dll',
                                         'libgthread-2.0-0.dll',
                                         'QtGui4.dll', 'QtCore.dll',
                                         'QtCore4.dll'
                                        ],
                          }
                },
      data_files=matplotlib.get_py2exe_datafiles(),
)

 

0 Shares:
Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.