-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
32 lines (29 loc) · 932 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
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine-tuning.
build_exe_options = {
"packages": [
"wx.adv",
"PIL",
"wx.lib.delayedresult",
"wx.lib.buttons"
],
"include_files": [
("./img/background2.png", "img/background2.png"),
("./img/github_icon.gif", "img/github_icon.gif"),
("./img/busy_loading.gif", "img/busy_loading.gif"),
("./img/icon.ico", "img/icon.ico"),
("./img/icon.png", "img/icon.png")
],
"excludes": ["tkinter"] # Exclude tkinter if you're not using it
}
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="zenWai_SmartImageProcessor",
version="0.4",
description="Compress images from a source to a destination directory",
options={"build_exe": build_exe_options},
executables=[Executable("main.py", base=base)]
)