-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
62 lines (48 loc) · 1.84 KB
/
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
57
58
59
60
61
62
'''
Setup script build exe windows application.
created on 05.04.2020
@author: Ruslan Dolovanyuk
Example running: python setup.py build
'''
from cx_Freeze import setup, Executable
import version
executables = [Executable('main.pyw',
targetName='hotsound.exe',
base='Win32GUI')]
excludes = ['logging', 'unittest', 'email', 'html', 'http', 'urllib', 'xml', 'xmlrpc',
'bz2', 'select', 'pydoc', 'ctypes', 'tkinter', 'distutils', 'test',
]
includes = ['json', 'pickle', 'webbrowser', 'wx',
'multiprocessing', 'pyaudio', 'wave', 'sqlite3',
]
zip_include_packages = ['collections', 'encodings', 'importlib',
'json', 'pickle', 'webbrowser', 'wx',
'multiprocessing', 'pyaudio', 'wave', 'sqlite3',
]
include_files = [('commands.pyd', 'lib/commands.pyd'),
('configs.pyd', 'lib/configs.pyd'),
('database.pyd', 'lib/database.pyd'),
('dialogs.pyd', 'lib/dialogs.pyd'),
('linker.pyd', 'lib/linker.pyd'),
('menu.pyd', 'lib/menu.pyd'),
('options.pyd', 'lib/options.pyd'),
('player.pyd', 'lib/player.pyd'),
('version.pyd', 'lib/version.pyd'),
('wxdb.pyd', 'lib/wxdb.pyd'),
'languages.dat',
]
options = {
'build_exe': {
'include_msvcr': True,
'excludes': excludes,
'includes': includes,
'zip_include_packages': zip_include_packages,
'build_exe': 'build_windows',
'include_files': include_files,
}
}
setup(name='hotsound',
version=version.VERSION,
description='Sound wave sintezator on keyboard hotkeys.',
executables=executables,
options=options)