-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py.cxfreeze
More file actions
55 lines (40 loc) · 1.52 KB
/
setup.py.cxfreeze
File metadata and controls
55 lines (40 loc) · 1.52 KB
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
54
55
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from cx_Freeze import setup, Executable
# Process the includes, excludes and packages first
includes = []
excludes = []
packages = []
path = ['icons']
# This is a place where the user custom code may go. You can do almost
# whatever you want, even modify the data_files, includes and friends
# here as long as they have the same variable name that the setup call
# below is expecting.
# No custom code added
# use the Python class Executable from cx_Freeze
GUI2Exe_Target_1 = Executable(
# what to build
script = "pyBooguNote.py",
initScript = None,
base = 'Win32GUI',
#targetDir = r"dist",
#targetName = "pyBooguNote",
compress = True6›,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = None)
# That's serious now: we have all (or almost all) the options cx_Freeze
# supports. I put them all even if some of them are usually defaulted
# and not used. Some of them I didn't even know about.
setup(
version = "0.1",
description = "A non-official BooguNote file editor written with Python 3 and Tkinter.",
author = "Felix Lu",
name = "pyBooguNote",
options = {"build_exe": {"includes": includes,
"excludes": excludes,
"packages": packages,
"path": path}},
executables = [GUI2Exe_Target_1])
# This is a place where any post-compile code may go.