py2exe脚本

from distutils.core import setup  
import py2exe  

data_files = [("set.ini")]

includes = ["encodings", "encodings.*", "sip"]  

options = {"py2exe":  
            {   "compressed": 1,  
                "optimize": 2,  
                "includes": includes,  
                "bundle_files": 1  
            }  
          }  
setup(
    version = "0.1.0",  
    options = options,
    data_files = data_files, 
    zipfile=None,
    windows=[{"script": "ZipCDPression.py"}],
    )

python setup.py py2exe

你可能感兴趣的:(py2exe脚本)