Пример #1
0
def BundleEsky(freezer, options, icon):
    app = [bdist_esky.Executable(APP, gui_only=True, 
                                      icon=icon),]
    eskyOps = dict(freezer_module = freezer,
                   freezer_options = options,
                   enable_appdata_dir = True,
                   bundle_msvcrt = True)

    data = [ icon, ]

    setup(name = NAME,
          scripts = app,
          version = VERSION,
          author = AUTHOR,
          author_email = AUTHOR_EMAIL,
          license = LICENSE,
          url = URL,
          data_files = data,
          options = dict(bdist_esky = eskyOps))
Пример #2
0
    "excludes": ['matplotlib', "tcl", 'ttk', "tkinter"]
}

if sys.platform == "win32":
    base = "Win32GUI"
    libegl = os.path.join(os.path.dirname(PyQt5.__file__), 'libEGL.dll')
    #incl_files.append((libegl,os.path.split(libegl)[1]))

group_name = 'PCT'

exe_name = 'Phonological CorpusTools'

exe = bdist_esky.Executable(
    'corpustools/command_line/pct.py',
    #targetName = 'pct',
    gui_only=True,
    #shortcutDir=r'[StartMenuFolder]\%s' % group_name,
    #shortcutName=exe_name,
    icon='docs/images/logo.ico')

build_exe_options = {
    "excludes": [
        'matplotlib',
        "tcl",
        'ttk',
        "tkinter",
    ],
    "includes": [
        "PyQt5",
        "PyQt5.QtWebKitWidgets",
        "PyQt5.QtWebKit",
Пример #3
0
elif sys.platform == "darwin":
    import py2app

    FREEZER = 'py2app'
    FREEZER_OPTIONS = dict(
        argv_emulation=False,
        iconfile='mondrian.icns',
    )
    exeICON = None

# Common settings
NAME = "wxImageViewer"
APP = [
    bdist_esky.Executable(
        "image_viewer.py",
        gui_only=True,
        icon=exeICON,
    )
]
DATA_FILES = ['mondrian.ico']

ESKY_OPTIONS = dict(
    freezer_module=FREEZER,
    freezer_options=FREEZER_OPTIONS,
    enable_appdata_dir=True,
    bundle_msvcrt=True,
)

# Build the app and the esky bundle
setup(name=NAME,
      scripts=APP,
Пример #4
0
        #Mac OS x
        #brew install python
        #curl https://bootstrap.pypa.io/ez_setup.py -o - | python

        #printer_osx = Printer(strategy=PrinterMac)
    else:
        print os_type + "Unknow"

    #print printer_linux.find("x")

except Exception, e:
    print "The following exception was expected:"
    print e

# Common settings
APP = [bdist_esky.Executable("main.py", gui_only=True, icon=exeICON)]
#DATA_FILES = [ 'erpmtics.ico' ]
ESKY_OPTIONS = dict(freezer_module=FREEZER,
                    freezer_options=FREEZER_OPTIONS,
                    enable_appdata_dir=True,
                    bundle_msvcrt=True)
'''
    ,install_requires=[
        'M2Crypto'
        # PyQt4 is also required, but it doesn't play nicely with setup.py
    ]

 options={
          'bdist_msi': bdist_msi_options,
          'build_exe': build_exe_options})
executables = [
Пример #5
0
    'pl.py', 'sr_cyrillic.py', 'sr_latin.py', 'vi.py'
]

orth_plugins_paths = [
    'plugins/orth/' + orth_plugin for orth_plugin in orth_plugins
]

phon_plugins = ['__init__.py', 'fr.py', 'it.py']

phon_plugins_paths = [
    'plugins/phon/' + phon_plugin for phon_plugin in phon_plugins
]

Wuggy_executable = bdist_esky.Executable(
    gui_only=True,
    description="A multilingual pseudoword generator",
    script="Wuggy.py",
    icon=ICON)

setup(
    name=info.Name,
    version=info.Version,
    scripts=[Wuggy_executable],
    dist="C:\dist",
    # packages=find_packages(exclude=['plugins', 'plugins.*']),
    packages=find_packages(),
    data_files=[('data', lexica_paths), ('plugins', plugins_paths),
                ('plugins/orth', orth_plugins_paths),
                ('plugins/phon', phon_plugins_paths)],
    options={
        'bdist_esky': {
Пример #6
0
from esky import bdist_esky
from distutils.core import setup

PY2APP_OPTIONS = {
    'argv_emulation': True,
    'includes': ['sip', 'PyQt5', 'helloform'],
    'qt_plugins': ['*']
}
ESKY_OPTIONS = {
    "freezer_module": "py2app",
    "freezer_options": PY2APP_OPTIONS,
    "includes": ['sip', 'PyQt5', 'helloform']
}

HelloApp = bdist_esky.Executable("HelloApp/HelloApp.py", gui_only=True)

setup(name='HelloApp',
      version="2014060301",
      data_files=[],
      options={"bdist_esky": ESKY_OPTIONS},
      scripts=[HelloApp])
Пример #7
0
# platform specific settings for Mac/py2app
elif sys.platform == "darwin":
    import py2app

    FREEZER = 'py2app'
    FREEZER_OPTIONS = dict(
        argv_emulation=False,
        iconfile='mondrian.icns',
    )
    exeICON = None

# Common settings
NAME = "SuperDoodle"
APP = [bdist_esky.Executable(
    "superdoodle.py",
    gui_only=True,
    icon=exeICON,
)]
DATA_FILES = ['mondrian.ico']
ESKY_OPTIONS = dict(
    freezer_module=FREEZER,
    freezer_options=FREEZER_OPTIONS,
    enable_appdata_dir=True,
    bundle_msvcrt=True,
)

# Build the app and the esky bundle
setup(
    name=NAME,
    scripts=APP,
    version=version.VERSION,