読者です 読者をやめる 読者になる 読者になる

cx_freezeでビルド

Pythonビルドができたのでメモ

cx_freezeこちらからダウンロード
http://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze
公式のだとエラーがでてビルドできない

setup.py

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"], "create_shared_zip": False, "append_script_to_exe": True }

# GUI applications require a different base on Windows (the default is for a
# console application).

base = None

if sys.platform == "win32":
    base = "Win32GUI"

setup(  name = "xxxxx",
        version = "0.1",
        description = "xxxxx",
        options = {"build_exe": build_exe_options},
        executables = [Executable("xxxxx.py", base=base)])