setup.py

Mon, 17 Sep 2018 19:48:02 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 17 Sep 2018 19:48:02 -0500
changeset 118
aadd60a24bc8
parent 117
b509a4e34d7f
child 135
45c1a38f8709
permissions
-rw-r--r--

py2app is fucked up shit that couldn't find a packages with staring at it
with its name written on it, and instead takes them all, so include a long
list of modules to forcibly exclude to build a reasonably-sized app.

from setuptools import setup

APP = ['borgend.py']
DATA_FILES = []
OPTIONS = {
    'argv_emulation': False,
    'plist': {
        'LSUIElement': True,
    },
    'packages': ['rumps', 'keyring', 'yaml'],
    'includes': ['xdg'],
    'excludes': ['wx', 'PyQt5', 'matplotlib', 'numpy', 'scipy'],
}

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

mercurial