File: pygadgets-products/unzipped/build/build-app-exe/macosx/setup.py

"""
This is a setup.py script generated by py2applet

See build.py for enclosing script and notes.

Usage:
    python setup.py py2app
"""

from setuptools import setup

APP = ['PyGadgets.py']    # must match the source name

DATA_FILES = []          # not used here

INCLUDES = []            # not used here


OPTIONS = {
    # some options (icon, resources, excludes) come from the command-line too
    # see build.py for the command line that uses this file

    # ADDED: pygadgets does not run arbitrary code
    'includes': INCLUDES,
    
    # CHANGED: it's broken, but irrelevant here
    'argv_emulation': False,

    # ADDED: don't edit Info.plist file (some plist entries are automatic)
    'plist': {
        # bundle details
        'CFBundleName':          'PyGadgets',
        'CFBundleDisplayName':   'PyGadgets',
        'CFBundleExecutable':    'PyGadgets',   # also automatic
        'CFBundleGetInfoString': 'A Python/Tk GUI Toy Box',

        # version/org details        
        'CFBundleVersion':            '4.0.0',
        'CFBundleShortVersionString': '4.0.0',
        'CFBundleIdentifier':
            'org.lutzware.PyGadgets',    # must be unique for Lanchpad
        'NSHumanReadableCopyright':
            'Copyright © 1999-2017, M. Lutz (learning-python.com)',

        # declare common associatable types: none here
    }
}

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



[Home page] Books Code Blog Python Author Train Find ©M.Lutz