-
Notifications
You must be signed in to change notification settings - Fork 0
/
cx.py
39 lines (34 loc) · 1.16 KB
/
cx.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
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"build_exe": "dist",
"packages": ["os", "numpy", "scipy", "matplotlib", "docx", "openpyxl"],
"excludes": ["tkinter", "scipy.spatial.cKDTree"],
"includes": [
"matplotlib.backends.backend_qt5agg",
"matplotlib.dviread",
"matplotlib.tight_bbox"
],
"include_files": [
# source
"src/",
# other
"src/science/samples",
"src/default.docx",
# qt
"venv/Lib/site-packages/PyQt5/Qt/bin/libEGL.dll",
"venv/Lib/site-packages/PyQt5/Qt/plugins/platforms",
]
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
exe = Executable(script='src/main.py', base=base, icon='src/icon.ico', targetName='Health-weather correlation.exe')
setup(name="Health-weather correlation",
version="1.0",
description="",
options={"build_exe": build_exe_options},
executables=[exe])