-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
35 lines (29 loc) · 953 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
from cx_Freeze import setup, Executable
# Specify the icon file path
icon_file = "src/images/logo_icon.ico" # Replace with the path to your icon file
# Define build_exe_options with packages and the include_files list
build_exe_options = {
"packages": ["tkinter", "matplotlib", "numpy", "PIL", "skimage", "utils", "os", "cv2", "tkinter.font"],
"excludes": [""],
"include_files": ("src", "src"),
}
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [Executable(
"view_image_processor.py",
base = base,
icon=icon_file,
shortcut_name="Image Processor",
shortcut_dir= "image_processor",
),
]
setup(
name="Image Processor",
version="1.1.0",
description="The application is used to process images, binarize them, and create histograms of the images.",
executables=executables,
options={
"build_exe": build_exe_options,
},
)