setup.py

Sun, 21 Jan 2018 22:43:57 +0000

author
Tuomo Valkonen <tuomov@iki.fi>
date
Sun, 21 Jan 2018 22:43:57 +0000
changeset 43
8f3ac19f11b6
parent 33
91421eeb4426
child 56
d63f6e9a4633
permissions
-rw-r--r--

Use platform package to detect whether to:
* rumps vs. xdg for configuration file location, and
* try to display a tray icon

from setuptools import setup

APP = ['borgend.py']
DATA_FILES = []
OPTIONS = {
    'argv_emulation': False,
    'plist': {
        'LSUIElement': True,
    },
    'packages': ['rumps', 'keyring'], #, 'xdg'],
}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

mercurial