-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (39 loc) · 920 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
36
37
38
39
40
41
42
43
44
import sys
from cx_Freeze import Executable, setup
import src.constants as constants
# Dependencies are automatically detected, but it might need
# fine tuning.
build_options = {
'packages': [
# scypy is used by sklearn
"scipy.optimize",
"scipy.integrate",
],
"include_files": [
"res/",
"LICENCE.txt",
],
"bin_includes": [
# Required for dlib:
"liblapack.so.3",
"libblas.so.3",
"libgfortran.so.5",
"libopenblas.so.0",
],
}
base = 'Win32GUI' if sys.platform == 'win32' else None
executables = [
Executable(
'./main.py',
base=base,
target_name='Phantom',
icon='./res/img/icon.ico',
)
]
setup(
name=constants.app_name,
version=constants.app_version,
description=constants.app_description,
options={'build_exe': build_options},
executables=executables,
)