-
Notifications
You must be signed in to change notification settings - Fork 0
/
cx_freeze.py
31 lines (26 loc) · 1.14 KB
/
cx_freeze.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
import os
from cx_Freeze import setup, Executable
os.environ['TCL_LIBRARY'] = 'C:/Users/ralui/AppData/Local/Programs/Python/Python36/tcl/tcl8.6'
os.environ['TK_LIBRARY'] = 'C:/Users/ralui/AppData/Local/Programs/Python/Python36/tcl/tk8.6'
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(
packages = ['dill', 'python_cipres', 'string', 'subprocess', 'tempfile',
'getopt', 'shutil', 'traceback', 'requests', 'xml', 'urllib3', 'chardet',
'certifi', 'idna', 'pathlib', 'Bio', 'ttkthemes', 'datetime', 'tkinter'],
excludes = ['PyQt5'],
include_files=['C:/Users/ralui/AppData/Local/Programs/Python/Python36/DLLs/tcl86t.dll',
'C:/Users/ralui/AppData/Local/Programs/Python/Python36/DLLs/tk86t.dll',
'COPYING']
)
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('main.py', base=base, shortcutName='cramb',
shortcutDir='ProgramMenuFolder', icon='cramb.ico')
]
setup(name='cramb',
version = '2.0.5',
description = '',
options = dict(build_exe = buildOptions),
executables = executables)