-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (36 loc) · 1.18 KB
/
setup.py
File metadata and controls
39 lines (36 loc) · 1.18 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
from cx_Freeze import setup, Executable
import os
# Define the list of Executables (your main script)
executables = [Executable(
script="run.py", # Replace with the name of your main script
base="Console", # Use "Console" for command-line applications
target_name="ItaReportViewer.exe"
)]
# Additional options, including packages and include files
build_options = {
"packages": ["app"],
"excludes": ["tkinter"], # Exclude tkinter if not needed
"include_files": ["app/__init__.py",
"app/models.py",
"app/routes.py"], # Include any data files
"includes": ["flask",
"flask_sqlalchemy",
"flask_migrate",
"os",
"sqlalchemy.dialects.sqlite",
"json",
"re",
"urllib",
"sqlalchemy",
"sys",
"subprocess",
"shutil"], # Include the SQLite module
}
# Create setup configuration
setup(
name="ItaReportViewer",
version="1.0",
description="Ita Report Viewer Web Application",
executables=executables,
options={"build_exe": build_options},
)