zoukankan      html  css  js  c++  java
  • py2exe setup.py

    from distutils.core import setup
    import py2exe
    includes 
    = ["encodings""encodings.*"]
    options 
    = {"py2exe":
                {   
    "compressed"1,
                    
    "optimize"2,
                    
    "includes": includes,                
                }
              }
    setup(   
        version 
    = "0.1.0",
        description 
    = "search panda",
        name 
    = "search panda",    
        options 
    = options,    
        windows
    =[{"script""search.py""icon_resources": [(1"search.ico")] }],      
        )
    只需要改为:
    from distutils.core import setup
    import py2exe
    includes 
    = ["encodings""encodings.*"]
    options 
    = {"py2exe":
                {   
    "compressed"1,
                    
    "optimize"2,
                    
    "includes": includes,
                    
    "bundle_files"1
                }
              }
    setup(   
        version 
    = "0.1.0",
        description 
    = "search panda",
        name 
    = "search panda",
        options 
    = options,
        zipfile
    =None,
        windows
    =[{"script""search.py""icon_resources": [(1"search.ico")] }],  
        
        )

    出自 http://jinheking.javaeye.com/blog/165057

  • 相关阅读:
    ModSecurity for Nginx
    一些好用的nginx第三方模块
    ModSecurity--web应用防火墙
    mycat表拆分操作教程
    .NET解析HTML库集合
    MySQL分库分表
    Redis配置文件参数说明
    redis优化优秀文选
    MySQL订单分库分表多维度查询
    每秒处理10万订单乐视集团支付架构
  • 原文地址:https://www.cnblogs.com/cpper/p/1504212.html
Copyright © 2011-2022 走看看