forked from n0spaces/MorshuTalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreeze_setup.py
56 lines (50 loc) · 1.14 KB
/
freeze_setup.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
# no idea why cx_freeze includes soooo many unneeded packages
# i'd exclude more but shiboken (pyside6) needs them for some reason
exclude_packages = [
'asyncio',
'certifi',
'cffi',
'chardet',
'concurrent',
'curses',
'distutils',
'idna',
'joblib',
'lib2to3',
'msilib',
'multiprocessing',
'networkx',
'pycparser',
'pydoc_data',
'pyreadline',
'pytz',
'requrests',
'scipy',
'setuptools',
'test',
'tkinter',
'tqdm',
'unittest',
'urllib3',
'xmlrpc',
'yaml',
]
include_packages = [
'secrets',
]
build_options = {
'excludes': exclude_packages,
'includes': include_packages,
'include_files': [('thirdparty.txt', ''), ('LICENSE.txt', '')]
}
base = None
# base = 'Win32GUI' if sys.platform == 'win32' else None
executables = [
cx_Freeze.Executable('morshutalkgui\\__main__.py', base=base, target_name='MorshuTalk')
]
cx_Freeze.setup(name='MorshuTalk',
version='0.0.2',
description='Morshu TTS',
options={'build_exe': build_options},
executables=executables)