Python论坛  - 讨论区

标题:[python-chinese] 请教:用py2exe转换Karrigell工程,setup文件问题

2006年11月07日 星期二 17:04

王明 mingwang在iflytek.com
星期二 十一月 7 17:04:55 HKT 2006

ÔÚwindows»·¾³Ï£º

ÎÒ¸Õ¿ªÊ¼Ð´µÄʱºò£¬ÀÏÊDZ¨Ä³¸öÎļþÕÒ²»µ½£¬½á¹û¾ÍÓñȽϳóµÄ°ì·¨°ÑȱµÄÓ²¼Ó½øÈ¥£¬ÒòΪ×öÁËxml½âÎö£¬ÒªÓõ½ÏÂÃæÕâ¸ö¿â $PYTHON_PATH\libs\pyexpat.lib£¬¸ÃÈçºÎ

¼Ó½øÈ¥£¬Áí¸½ÉÏÎÒµÄsetup.py, дµÄ²»¶ÔµÄµØ·½£¬Çë¶à¶àÖ¸³ö£¬Ð»ÁË£¡

 

from distutils.core import setup

import py2exe

 

tup(    

    version = "0.5.0",

    description = "py2exe sample script",

    name = "py2exe samples",

 

    # targets to build

    packages=['Cheetah','Cheetah.Utils','core','modules','debugger','webservers','webapps'],

           

    console = ['Karrigell.py'],

    

    data_files=[('', ['Karrigell.ini']), 

            ('webapps',['webapps/index.html','webapps/karrigell.css','webapps/mrm.py','webapps/MRM-Frame.html']), 

 

            ('webapps/config',['webapps/config/service_res.py','webapps/config/service_res.pih']),

 

           ('webapps/res', ['webapps/res/imgBtnConfig.gif', 'webapps/res/imgBtnHelp.gif']),

 

            ('webapps/status',['webapps/status/mrserver_cap.html','webapps/status/server_base.hip']),

 

           ('modules', ['modules/mod_py.py', 'modules/mod_pih.py', 'modules/mod_hip.py']),

 

           ('xml',['xml/__init__.py']),

 

            ('xml/dom',['xml/dom/__init__.py','xml/dom/minidom.py','xml/dom/domreg.py','xml/dom/minicompat.py',

            'xml/dom/xmlbuilder.py','xml/dom/pulldom.py','xml/dom/NodeFilter.py','xml/dom/expatbuilder.py']),

 

           ('xml/parsers',['xml/parsers/__init__.py','xml/parsers/expat.py'])]

)

 

 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061107/a914c5f2/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号