-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (53 loc) · 1.27 KB
/
setup.py
File metadata and controls
62 lines (53 loc) · 1.27 KB
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
# pip install setuptools py2app
# python3 setup.py py2app
from setuptools import setup
APP = ["main.py"]
DATA_FILES = []
OPTIONS = {
"argv_emulation": False,
"iconfile": "playlist.icns",
# Menu bar app: no Dock icon.
"plist": {
"CFBundleName": "Playlist",
"CFBundleDisplayName": "Playlist",
"CFBundleIdentifier": "ai.hackerman.playlist",
"CFBundleVersion": "0.1.0",
"CFBundleShortVersionString": "0.1.0",
# Hide Dock icon / make it an agent app.
"LSUIElement": True,
# Avoid macOS restore-state warning where possible.
"NSQuitAlwaysKeepsWindows": False,
},
# Usually needed for PyObjC/AppKit apps.
"packages": [
"rumps",
"audioplayer",
"objc",
"Foundation",
"AppKit",
"Quartz",
"AVFoundation",
"CoreMedia",
],
# Pillow is not used in your current version, so do not include it.
"includes": [
"pathlib",
],
# Keep the app smaller.
"excludes": [
"tkinter",
"PIL",
"PyQt5",
"PyQt6",
"numpy",
"scipy",
"matplotlib",
"pandas",
],
}
setup(
app=APP,
name="Playlist",
data_files=DATA_FILES,
options={"py2app": OPTIONS},
)