예제 #1
0
def BuildOSXApp():
    """Build the OSX Applet"""
    # Check for setuptools and ask to download if it is not available
    import src.extern.ez_setup as ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup

    CleanBuild()

    PLIST = dict(
        CFBundleName=info.PROG_NAME,
        CFBundleIconFile='Editra.icns',
        CFBundleShortVersionString=info.VERSION,
        CFBundleGetInfoString=info.PROG_NAME + " " + info.VERSION,
        CFBundleExecutable=info.PROG_NAME,
        CFBundleIdentifier="org.editra.%s" % info.PROG_NAME.title(),
        CFBundleDocumentTypes=[
            dict(CFBundleTypeExtensions=synextreg.GetFileExtensions(),
                 CFBundleTypeIconFile='editra_doc',
                 CFBundleTypeRole="Editor"),
        ],
        CFBundleTypeMIMETypes=[
            'text/plain',
        ],
        CFBundleDevelopmentRegion='English',
        # TODO Causes errors with the system menu translations and text rendering
        #             CFBundleLocalizations = ['English', 'Spanish', 'French', 'Japanese'],
        #             ['de_DE', 'en_US', 'es_ES', 'fr_FR',
        #                                      'it_IT', 'ja_JP', 'nl_NL', 'nn_NO',
        #                                      'pt_BR', 'ru_RU', 'sr_SR', 'tr_TR',
        #                                      'uk_UA', 'zh_CN'],
        #      NSAppleScriptEnabled="YES",
        NSHumanReadableCopyright=u"Copyright %s 2005-%d" % (AUTHOR, YEAR))

    PY2APP_OPTS = dict(iconfile=ICON['Mac'],
                       argv_emulation=True,
                       optimize=True,
                       includes=INCLUDES,
                       plist=PLIST)

    # Add extra mac specific files
    DATA_FILES = GenerateBinPackageFiles()
    DATA_FILES.append("scripts/editramac.sh")

    # Put extern package on path for py2app
    sys.path.append(os.path.abspath('src/extern'))

    setup(
        app=APP,
        version=VERSION,
        options=dict(py2app=PY2APP_OPTS),
        description=DESCRIPTION,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        maintainer=AUTHOR,
        maintainer_email=AUTHOR_EMAIL,
        license=LICENSE,
        url=URL,
        data_files=DATA_FILES,
        setup_requires=['py2app'],
    )

    CreateDMG(VERSION)
예제 #2
0
        }],
        description=NAME,
        author=AUTHOR,
        author_email=AUTHOR_EMAIL,
        maintainer=AUTHOR,
        maintainer_email=AUTHOR_EMAIL,
        license=LICENSE,
        url=URL,
        data_files=GenerateBinPackageFiles(),
    )

#---- Setup MacOSX APP ----#
elif __platform__ == "darwin" and 'py2app' in sys.argv:
    # Check for setuptools and ask to download if it is not available
    import src.extern.ez_setup as ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup

    PLIST = dict(
        CFBundleName=info.PROG_NAME,
        CFBundleIconFile='Editra.icns',
        CFBundleShortVersionString=info.VERSION,
        CFBundleGetInfoString=info.PROG_NAME + " " + info.VERSION,
        CFBundleExecutable=info.PROG_NAME,
        CFBundleIdentifier="org.editra.%s" % info.PROG_NAME.title(),
        CFBundleDocumentTypes=[
            dict(CFBundleTypeExtensions=synextreg.GetFileExtensions(),
                 CFBundleTypeIconFile='editra_doc',
                 CFBundleTypeRole="Editor"),
        ],
        CFBundleTypeMIMETypes=[
예제 #3
0
파일: setup.py 프로젝트: achernet/wxPython
                  }],
        description = DESCRIPTION,
        author = AUTHOR,
        author_email = AUTHOR_EMAIL,
        maintainer = AUTHOR,
        maintainer_email = AUTHOR_EMAIL,
        license = LICENSE,
        url = URL,
        data_files = DATA_FILES,
        )

#---- Setup MacOSX APP ----#
elif __platform__ == "darwin" and 'py2app' in sys.argv:
    # Check for setuptools and ask to download if it is not available
    import src.extern.ez_setup as ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup

    PLIST = dict(CFBundleName = info.PROG_NAME,
             CFBundleIconFile = 'Editra.icns',
             CFBundleShortVersionString = info.VERSION,
             CFBundleGetInfoString = info.PROG_NAME + " " + info.VERSION,
             CFBundleExecutable = info.PROG_NAME,
             CFBundleIdentifier = "org.editra.%s" % info.PROG_NAME.title(),
             CFBundleDocumentTypes = [dict(CFBundleTypeExtensions=synextreg.GetFileExtensions(),
                                           CFBundleTypeIconFile='editra_doc',
                                           CFBundleTypeRole="Editor"
                                          ),
                                     ],
       #      NSAppleScriptEnabled="YES",
             NSHumanReadableCopyright = u"Copyright %s 2005-%d" % (AUTHOR, YEAR)
예제 #4
0
파일: setup.py 프로젝트: apetcho/wxPython-2
def BuildOSXApp():
    """Build the OSX Applet"""
    # Check for setuptools and ask to download if it is not available
    import src.extern.ez_setup as ez_setup
    ez_setup.use_setuptools()
    from setuptools import setup

    CleanBuild()

    PLIST = dict(CFBundleName = info.PROG_NAME,
             CFBundleIconFile = 'Editra.icns',
             CFBundleShortVersionString = info.VERSION,
             CFBundleGetInfoString = info.PROG_NAME + " " + info.VERSION,
             CFBundleExecutable = info.PROG_NAME,
             CFBundleIdentifier = "org.editra.%s" % info.PROG_NAME.title(),
             CFBundleDocumentTypes = [dict(CFBundleTypeExtensions=synextreg.GetFileExtensions(),
                                           CFBundleTypeIconFile='editra_doc',
                                           CFBundleTypeRole="Editor"
                                          ),
                                     ],
             CFBundleTypeMIMETypes = ['text/plain',],
             CFBundleDevelopmentRegion = 'English',
# TODO Causes errors with the system menu translations and text rendering
#             CFBundleLocalizations = ['English', 'Spanish', 'French', 'Japanese'],
#             ['de_DE', 'en_US', 'es_ES', 'fr_FR',
#                                      'it_IT', 'ja_JP', 'nl_NL', 'nn_NO',
#                                      'pt_BR', 'ru_RU', 'sr_SR', 'tr_TR',
#                                      'uk_UA', 'zh_CN'],
       #      NSAppleScriptEnabled="YES",
             NSHumanReadableCopyright = u"Copyright %s 2005-%d" % (AUTHOR, YEAR)
             )

    PY2APP_OPTS = dict(iconfile = ICON['Mac'],
                       argv_emulation = True,
                       optimize = True,
                       includes = INCLUDES,
                       plist = PLIST)

    # Add extra mac specific files
    DATA_FILES = GenerateBinPackageFiles()
    DATA_FILES.append("scripts/editramac.sh")

    # Put extern package on path for py2app
    sys.path.append(os.path.abspath('src/extern'))

    setup(
        app = APP,
        version = VERSION,
        options = dict( py2app = PY2APP_OPTS),
        description = DESCRIPTION,
        author = AUTHOR,
        author_email = AUTHOR_EMAIL,
        maintainer = AUTHOR,
        maintainer_email = AUTHOR_EMAIL,
        license = LICENSE,
        url = URL,
        data_files = DATA_FILES,
        setup_requires = ['py2app'],
        )

    CreateDMG(VERSION)