免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2458 | 回复: 0
打印 上一主题 下一主题

编译python工具:cx_freeze [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-05 01:35 |只看该作者 |倒序浏览
usage: FreezePython.exe [options] [SCRIPT]
Freeze a Python script and all of its referenced modules to a base
executable which can then be distributed without requiring a Python
installation.
options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -O                    optimize generated bytecode as per PYTHONOPTIMIZE; use
                        -OO in order to remove doc strings
  -c, --compress        compress byte code in zip files
  --base-name=NAME, --base-binary=NAME
                        file on which to base the target file; if the name of
                        the file is not an absolute file name, the
                        subdirectory bases (rooted in the directory in which
                        the freezer is found) will be searched for a file
                        matching the name
  --init-script=NAME    script which will be executed upon startup; if the
                        name of the file is not an absolute file name, the
                        subdirectory initscripts (rooted in the directory in
                        which the freezer is found) will be searched for a
                        file matching the name
  --target-dir=DIR, --install-dir=DIR
                        the directory in which to place the target file and
                        any dependent files
  --target-name=NAME    the name of the file to create instead of the base
                        name of the script and the extension of the base
                        binary
  --shared-lib-name=NAME
                        the name of the shared library (DLL) implementing the
                        Python runtime which is required for a frozen binary
                        to work
  --no-copy-deps, --keep-path
                        do not copy the dependent files (extensions, shared
                        libraries, etc.) to the target directory; this also
                        modifies the default init script to ConsoleKeepPath.py
                        and means that the target executable requires a Python
                        installation to execute properly
  --default-path=DIRS   list of paths separated by the standard path separator
                        for the platform which will be used to initialize
                        sys.path prior to running the module finder
  --include-path=DIRS   list of paths separated by the standard path separator
                        for the platform which will be used to modify sys.path
                        prior to running the module finder
  --replace-paths=DIRECTIVES
                        replace all the paths in modules found in the given
                        paths with the given replacement string; multiple
                        values are separated by the standard path separator
                        and each value is of the form path=replacement_string;
                        path can be * which means all paths not already
                        specified
  --include-modules=NAMES
                        comma separated list of modules to include
  --exclude-modules=NAMES
                        comma separated list of modules to exclude
  --ext-list-file=NAME  name of file in which to place the list of dependent
                        files which were copied into the target directory
  -z SPEC, --zip-include=SPEC
                        name of file to add to the zip file or a specification
                        of the form name=arcname which will specify the
                        archive name to use; multiple --zip-include arguments
                        can be used

相关资源:

文件:
cx_Freeze-3.0.3-win32-py24.zip
大小:
187KB
下载:
下载

http://www.python.net/crew/atuining/cx_Freeze/
http://sourceforge.net/projects/cx-freeze


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8780/showart_180004.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP