-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (27 loc) · 994 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
import os
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"include_msvcr": True,
"silent": True,
"build_exe":os.getenv("EXEDIR"),
"zip_include_packages": "*",
"zip_exclude_packages": "",
"packages": ["pkg_resources._vendor"],
"excludes": ["tkinter","scipy","cv2","PySide","numpy","PyQt4"],
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = "Console"
if 0:
if sys.platform == "win32":
base = "Win32GUI"
target = Executable(
script="main.py", base=base, icon="favicon.ico"
)
setup( name = "Python application",
version = "1.0",
description = "(C) 2019 Ioan Coman",
options = {"build_exe": build_exe_options},
executables = [target])