1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| from cx_Freeze import setup, Executable
import sys, os
path = sys.path
# modules inclusion / exclusion
includes = ["lxml._elementpath", "decimal", "pyodbc"]
excludes = ["tkinter", "ttk", "tcl"]
packages = ["apps", "common", "ui"]
includefiles = [
("conf", "conf"),
("doc", "doc"),
("res", "res"),
("common/structs", "common/structs"),
("var", "var"),
("README", "README"),
]
binpathincludes = []
# build options
options = {"path": path,
"includes": includes,
"excludes": excludes,
"packages": packages,
"include_files": includefiles,
"bin_path_includes": binpathincludes
}
base = None
if sys.platform == "win32":
base = "Win32GUI"
bubble = Executable(
script = "bubble.py",
base = base,
compress = True,
icon = 'res/bubble.ico'
)
setup(name='bubble',
version='0.1.3',
description='Bubble-1.0',
author='Emmanuel Brunet',
author_email='emmanuel.brunet@live.fr',
packages=packages,
options = {"build_exe": options},
executables = [bubble]
) |
Partager