setup.py

Sun, 28 Jan 2018 12:41:50 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 28 Jan 2018 12:41:50 +0000
changeset 82
4e7678dd7b42
parent 60
10bd7e3906d9
child 117
b509a4e34d7f
permissions
-rw-r--r--

Enable Ctrl+C in MacOS UI mode.
TODO: proper exit handler, which seems to require
ditching/forking/extending rumps to extend the NSApp class

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'],
)

mercurial