Exemple #1
0
        argv_emulation=False,
        includes='cairo, pango, pangocairo, atk, gobject, gio',
        iconfile='images/FAHControl.icns',
        resources=['/opt/local/share/themes'],
        plist=plist,
    )

    extra_opts = dict(
        app=[app],
        options={'py2app': options},
        setup_requires=['py2app'],
    )

    # Hack around py2app problem with python scripts with out .py extension.
    from py2app.util import PY_SUFFIXES
    PY_SUFFIXES.append('')

elif sys.platform == 'win32':
    from cx_Freeze import setup, Executable

    # Change base to 'Console' for debugging
    e = Executable(app, base='Win32GUI', icon='images/FAHControl.ico')
    options = {'build_exe': {'build_exe': 'gui', 'includes': 'gtk'}}
    extra_opts = dict(executables=[e], options=options)

else:
    from setuptools import setup, find_packages

    extra_opts = dict(
        packages=find_packages(),
        scripts=[app],
            argv_emulation = False,
            includes = 'cairo, pango, pangocairo, atk, gobject, gio',
            iconfile = 'images/FAHControl.icns',
            resources = ['/opt/local/share/themes'],
            plist = plist,
            )

    extra_opts = dict(
        app = [app],
        options = {'py2app': options},
        setup_requires = ['py2app'],
    )

    # Hack around py2app problem with python scripts with out .py extension.
    from py2app.util import PY_SUFFIXES
    PY_SUFFIXES.append('')

elif sys.platform == 'win32':
    from cx_Freeze import setup, Executable

    e = Executable(app, base = 'Win32GUI', icon = 'images/FAHControl.ico')
    options = {
        'build_exe': {
            'build_exe': 'gui',
            'includes': 'gtk'
            }
        }
    extra_opts = dict(executables = [e], options = options)

else:
    from setuptools import setup, find_packages