-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (44 loc) · 1.02 KB
/
setup.py
File metadata and controls
50 lines (44 loc) · 1.02 KB
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
45
46
47
48
49
50
from cx_Freeze import setup, Executable
import sys
# Include additional files (e.g., config and SQL queries)
include_files = [
("export_config.json", "export_config.json"),
("sql_queries", "sql_queries")
]
# Dependencies required for your project
packages = [
"tkinter",
"csv",
"os",
"sys",
"json",
"hashlib",
"zipfile",
"glob",
"logging",
"mysql.connector",
"datetime",
"ethiopian_date_converter"
]
# Platform-specific options
build_options = {
"packages": packages,
"include_files": include_files,
"build_exe": "export_distributable",
"excludes": ["unittest", "pydoc", "test"]
}
# Add Linux-specific includes for tkinter
if sys.platform == "linux":
build_options["include_files"] = include_files
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="ExportTool",
version="1.0",
description="Data extraction Tool",
options={
"build_exe": build_options
},
executables=[Executable("export.py", base=base)]
)