-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (36 loc) · 990 Bytes
/
setup.py
File metadata and controls
38 lines (36 loc) · 990 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
36
37
38
from setuptools import setup
APP = ["main.py"]
DATA_FILES = [
("assets", ["assets/icon.png"]),
(
"src",
["src/translator.py", "src/video_processing.py", "src/database_handler.py"],
),
]
OPTIONS = {
"argv_emulation": False,
"packages": ["cv2", "sv_ttk", "PIL", "tkinter"],
"includes": ["PIL", "cv2", "sv_ttk", "tkinter", "threading"],
"excludes": ["matplotlib", "numpy", "pandas"],
"iconfile": "assets/icon.icns",
"plist": {
"CFBundleName": "ZhuYing",
"CFBundleDisplayName": "ZhuYing",
"CFBundleGetInfoString": "Video Transcription Tool",
"CFBundleVersion": "1.0.0",
"CFBundleShortVersionString": "1.0.0",
},
"resources": ["assets", "src"],
"site_packages": True,
"optimize": 2,
"arch": "x86_64",
"strip": False,
"prefer_ppc": False,
}
setup(
app=APP,
name="ZhuYing",
data_files=DATA_FILES,
options={"py2app": OPTIONS},
setup_requires=["py2app"],
)