-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (25 loc) · 774 Bytes
/
setup.py
File metadata and controls
28 lines (25 loc) · 774 Bytes
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
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"excludes": ["PyQt5.QtWebEngine"],
"optimize": 2,
"include_files": "images/"
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="pyWinContext",
targetName="pyWinContext",
version="0.1.1",
description="Manager for Context Menu commands in Windows",
options={"build_exe": build_exe_options},
executables=[
Executable(
"uac_wrapper.pyw", base=base,
targetName="pyWinContext.exe", icon="icon.ico")
]
)