forked from GitExl/WhackEd4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (30 loc) · 752 Bytes
/
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
import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('src')
build_exe_options = {
'path': paths,
'packages': ['whacked64'],
'include_files': ['res', 'cfg', 'docs', 'LICENSE', 'README.md'],
'optimize': 2,
'include_msvcr': True
}
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
exe = Executable(
'src/main.py',
base=base,
target_name=os.environ['app_name_lower'] + '.exe',
icon='res/icon-hatchet.ico'
)
setup(
name=os.environ['app_title'],
version=os.environ['app_version_value'],
description=os.environ['app_description'],
options={'build_exe': build_exe_options},
executables=[exe],
requires=['pyaudio', 'wxpython']
)