-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (85 loc) · 2.42 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
from __future__ import annotations
from cx_Freeze import Executable, setup
try:
from cx_Freeze.hooks import get_qt_plugins_paths
except ImportError:
get_qt_plugins_paths = None
include_files = ["icons", "src", "textures", "style.qss"]
if get_qt_plugins_paths:
include_files += get_qt_plugins_paths("PySide6", "platform")
base = "Win32GUI"
build_exe_options = {
"includes": ["urllib.request",
"threading",
"datetime",
"re",
"os",
"configparser",
"sys",
"subprocess",
"shutil",
"zipfile",
"html.parser",
"uuid",
"json",
"requests"],
"bin_excludes": ["libqpdf.so", "libqpdf.dylib"],
"excludes": ["selenium",
"pygments",
"superqt",
"chardet",
"ctypes.wintypes",
"fileinput",
"optparse",
"xml.etree.ElementTree",
"asyncio",
"http.cookies",
"wget",
"bs4",
"tkinter",
"unittest",
"PyQt5",
"PyQt6",
"decord",
"numpy",
"panda3d",
"pandas",
"playwright",
"scipy",
"requests",
"tensorflow",
"tesseract",
"matplotlib",
"Cryptodome",
"jedi",
"test",
"lxml",
"Cython",
"setuptools",
"IPython",
"prompt_toolkit",
"docutils",
"mutagen",
"pkg_resources",
"pywin32_system32",
"trio",
"distutils",
"io",
"PIL",
"yt_dlp",
"pygments",
"cryptography",
"PySide6.Qt6Network",
"PySide6.QtOpenGL",
"PySide6.Qt6Quick"],
"include_files": include_files,
"zip_include_packages": ["PySide6"],
}
executables = [Executable("main.py", base=base)]
setup(
name="Map_Builder",
version="2.0.0",
description="PTB Map Builder",
options={"build_exe": build_exe_options},
executables=executables,
)