from setuptools import setup import py2exe excludes = [ 'pyreadline', 'doctest', 'optparse', 'pickle', 'calendar', 'pdb', 'inspect', 'email', 'pywin', 'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs', 'pywin.dialogs.list', 'Tkconstants', 'Tkinter', 'tcl', ] setup(name='pythonpy', version='1.0', console=["pythonpy.py"], # py2exe options options = {'py2exe': {'bundle_files': 1, 'compressed': 2, 'optimize': 2, 'excludes': excludes, 'dll_excludes': ['w9xpopen.exe'], } }, zipfile = None, )