FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Convert-Python-Project-To-Executable/setup.py at main · TufayelLUS/Convert-Python-Project-To-Executable · GitHub
TufayelLUS
/
Convert-Python-Project-To-Executable
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Convert-Python-Project-To-Executable
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (25 loc) · 916 Bytes
Breadcrumbs
Convert-Python-Project-To-Executable
/
setup.py
Copy path
File metadata and controls
30 lines (25 loc) · 916 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
)
Back
|
FazBrowse Home
|
New Git URL