-
Notifications
You must be signed in to change notification settings - Fork 0
/
maker.py
56 lines (47 loc) · 1.45 KB
/
maker.py
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
56
import cx_Freeze as cf
import sys
import os
import distutils
import opcode
distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
sys.path.append(os.path.join(os.getcwd(), "UI"))
sys.path.append(os.path.join(os.getcwd(), "file_handlers"))
os.environ['TCL_LIBRARY'] = r'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r"C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tcl\tk8.6"
print(sys.path)
base = None
targetName = None
if sys.platform == 'win32':
base = 'Win32GUI'
targetName = "Fisher.exe"
# The following packages has to be included, as follows:
# ` "packages": ["numpy"] `
cf.setup(name="Fisher",
version="0.1",
description="",
options={
"build_exe": {
"packages": [
"numpy",
"os",
"scipy",
"skimage"
],
"includes": [
"atexit"
],
"include_files": [
(distutils_path, 'lib/distutils')
],
"excludes": [
'distutils'
]
}
},
executables=[
cf.Executable("main.py",
base=base,
targetName=targetName
)
]
)