Sun, 04 Feb 2018 01:27:38 +0000
Part 2 of handling macOS sleep/wake signal brokenness.
a) Added Time.horizon(), which indicates how far the Time event is from the
epoch, in monotonic time. For DreamTime, if the system is sleeping, this
returns ∞. b) The DreamTime monitor also signals sleep to callbacks, so
that the Scheduler can re-sort the events. The sorting is now done by
the horizon, so DreamTime events will be moved last and not activated when
the system is sleeping or "sleeping", but other events will be executed
normally if the system is merely "sleeping".
22
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
1 | from setuptools import setup |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
2 | |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
3 | APP = ['borgend.py'] |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
4 | DATA_FILES = [] |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
5 | OPTIONS = { |
24
94d58d514d69
Workaround to PYTHONPATH and PYTHONHOME being messed up by py2app.
Tuomo Valkonen <tuomov@iki.fi>
parents:
22
diff
changeset
|
6 | 'argv_emulation': False, |
22
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
7 | 'plist': { |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
8 | 'LSUIElement': True, |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
9 | }, |
60
10bd7e3906d9
py2app fails on several dependencies (xdg, pyyaml) that are satisfied
Tuomo Valkonen <tuomov@iki.fi>
parents:
56
diff
changeset
|
10 | 'packages': ['rumps', 'keyring'], |
10bd7e3906d9
py2app fails on several dependencies (xdg, pyyaml) that are satisfied
Tuomo Valkonen <tuomov@iki.fi>
parents:
56
diff
changeset
|
11 | # The following is the real list, byt py2app fails despite |
10bd7e3906d9
py2app fails on several dependencies (xdg, pyyaml) that are satisfied
Tuomo Valkonen <tuomov@iki.fi>
parents:
56
diff
changeset
|
12 | # them being installed according to pip3 and everything |
10bd7e3906d9
py2app fails on several dependencies (xdg, pyyaml) that are satisfied
Tuomo Valkonen <tuomov@iki.fi>
parents:
56
diff
changeset
|
13 | #'packages': ['rumps', 'keyring', 'xdg', 'pyyaml'], |
22
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
14 | } |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
15 | |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
16 | setup( |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
17 | app=APP, |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
18 | data_files=DATA_FILES, |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
19 | options={'py2app': OPTIONS}, |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
20 | setup_requires=['py2app'], |
c3e95212e3f0
py2app standalone app generation
Tuomo Valkonen <tuomov@iki.fi>
parents:
diff
changeset
|
21 | ) |