-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_simple.py
More file actions
35 lines (31 loc) · 808 Bytes
/
Copy pathsetup_simple.py
File metadata and controls
35 lines (31 loc) · 808 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
29
30
31
32
33
34
35
"""
Simplified setup script for creating executables
"""
from cx_Freeze import setup, Executable
import sys
# Simple build options
build_exe_options = {
"packages": ["PyQt5.QtCore", "PyQt5.QtGui", "PyQt5.QtWidgets"],
"excludes": ["tkinter", "unittest"],
"optimize": 2,
}
# Executables
executables = [
Executable(
"portable_converter.py",
base="Win32GUI" if sys.platform == "win32" else None,
target_name="PortableConverter.exe"
),
Executable(
"launcher.pyw",
base="Win32GUI" if sys.platform == "win32" else None,
target_name="PortableLauncher.exe"
)
]
setup(
name="PortableAppTools",
version="1.0",
description="Portable Application Tools",
options={"build_exe": build_exe_options},
executables=executables
)