Tue, 06 Feb 2018 20:16:59 +0000
Changed dreamtime calculation.
The monotonic clock (time.monotonic()) sometimes advances unreliably
in sleep, so isn't reliable for calculating sleeping time. We have to
use time.time(). But this may be changed by the user, so we only use
it to track sleep periods, and still use time.monotonic() to track
wake periods.
from setuptools import setup APP = ['borgend.py'] DATA_FILES = [] OPTIONS = { 'argv_emulation': False, 'plist': { 'LSUIElement': True, }, 'packages': ['rumps', 'keyring'], # The following is the real list, byt py2app fails despite # them being installed according to pip3 and everything #'packages': ['rumps', 'keyring', 'xdg', 'pyyaml'], } setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], )