使用cx_freeze冻结所有模块

时间:2018-07-11 02:00:53

标签: python cx-freeze

我想用cx_freeze冻结所有模块。有没有办法在设置选项中不将所有模块作为数组传递?

import sys
from cx_Freeze import setup, Executable

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"]}

setup(  name = "guifoo",
        version = "0.1",
        description = "My GUI application!",
        options = {"build_exe": build_exe_options},
        executables = [Executable("guifoo.py", base=base)])

类似的东西:

  

build_exe_options = {“软件包”:[*],“排除”:[“ tkinter”]}

我该怎么做?谢谢

0 个答案:

没有答案