''' fileName : build.py usage : build.py py2exe ''' from distutils.core import setup import py2exe import sys includes = ["encodings", "encodings.*"] sys.argv.append("py2exe") options = {"py2exe":{ "ascii": 1, # to make a smaller executable, don't include the encodings "compressed": 1, # compress the library archive "bundle_files": 1, "includes": includes, } } setup(options = options, zipfile=None, console = [{"script":'test1.py', }], data_files = ["Microsoft.VC90.CRT.manifest","msvcr90.dll"], ) ''' for Python 2.7 Microsoft.VC90.CRT.manifest : '''