-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (25 loc) · 916 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 sys
from cx_Freeze import setup, Executable
# pip install cx_freeze==7.2.4
base = None
if sys.platform == "win32":
base = "Win32GUI" # Use this option to create a GUI executable on Windows
# set the name of the python script below
executables = [Executable("python_file_name.py", base=base)]
# if you want to show the console, use the line below instead and comment out the line above
# executables = [Executable("python_file_name.py", base="Console")]
options = {
"build_exe": {
"optimize": 2, # set level of optimization 0-2
"packages": [], # List of packages to include
"include_files": [], # List of additional files to include
"excludes": [] # List of packages to exclude
},
}
setup(
name="Scraper", # name of the process
version="1.0",
description="Scraper", # description of the process
options=options,
executables=executables
)