-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (49 loc) · 1.67 KB
/
Copy pathsetup.py
File metadata and controls
63 lines (49 loc) · 1.67 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
62
63
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
import shutil
import sys
import datetime
import fileinput
version_string = "4.29"
#
# Modify the build_info text file to have the current build date, number and correct version
#
APP = ['hamclock_launcher.py']
if sys.platform == 'darwin':
import py2app.recipes
class PIL_recipe:
def check(self, cmd, mf):
m = mf.findNode("PIL")
if m is None or m.filename is None:
return None
# Exclude from site-packages.zip
return {"packages": ["PIL"]}
py2app.recipes.PIL = PIL_recipe()
Plist = dict(
CFBundleName='HamClockLauncher',
CFBundleGetInfoString='HamClockLauncher',
CFBundleShortVersionString='4.29',
NSHumanReadableCopyright='HamClockLauncher © 2025-2026, Hubert Hickman'
)
print(Plist)
OPTIONS = {'argv_emulation': False,
'iconfile': 'hamclock_icons.icns',
'resources': ['hamclock_bin', 'release_notes.html', 'HamClockUserGuide.pdf'],
#'cacert.pem'],
'plist': Plist,
'includes': ['six', 'packaging', 'packaging.version','wx',
'packaging.specifiers', 'packaging.requirements', 'appdirs', 'requests', 'OpenSSL',
'pyasn1', 'certifi', 'ndg-httpsclient'],
'packages': ['wx']
# 'codesign_entitlements': 'entitlements.plist'
}
setup(
app=APP,
#data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)