Example #1
0
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    name = "spyder"
    ver = spyder.__version__
    try:
        imp.find_module('PyQt4')
        python_qt = 'pyqt'
    except ImportError:
        python_qt = 'pyside'
    dist.setup(name="Spyder", version=ver, script="spyder/spyder.py",
               description="Scientific PYthon Development EnviRonment",
               target_name="%s.exe" % name, icon="%s.ico" % name,
               target_dir="%s-win32-%s-sa-%s" % (name, python_qt, ver))
    spyder.add_to_distribution(dist)
    dist.add_modules('matplotlib', 'h5py', 'scipy.io', 'guidata', 'pygments')
    try:
        import guiqwt  # analysis:ignore
        dist.add_modules('guiqwt')
    except ImportError:
        pass
    dist.includes += ['spyder.scientific_startup',
                      'spyder.widgets.externalshell.sitecustomize']

    #XXX: ...until we are able to distribute them (see guidata.disthelpers)
    dist.excludes += ['sphinx', 'zmq', 'IPython']

    if osp.isfile("Spyderdoc.chm"):
        dist.add_data_file("Spyderdoc.chm")
    dist.add_data_file(osp.join("rope", "base", "default_config.py"))
    # Building executable
    dist.build('cx_Freeze')#, create_archive='move')
Example #2
0
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    name = "spyder"
    ver = spyder.__version__
    try:
        imp.find_module('PyQt4')
        python_qt = 'pyqt'
    except ImportError:
        python_qt = 'pyside'
    dist.setup(name="Spyder", version=ver, script="spyder/spyder.py",
               description="Scientific PYthon Development EnviRonment",
               target_name="%s.exe" % name, icon="%s.ico" % name,
               target_dir="%s-win32-%s-sa-%s" % (name, python_qt, ver))
    spyder.add_to_distribution(dist)
    dist.add_modules('matplotlib', 'h5py', 'scipy.io', 'guidata', 'pygments')
    try:
        import guiqwt  # analysis:ignore
        dist.add_modules('guiqwt')
    except ImportError:
        pass
    dist.includes += ['spyder.utils.site.sitecustomize']

    #XXX: ...until we are able to distribute them (see guidata.disthelpers)
    dist.excludes += ['sphinx', 'zmq', 'IPython']

    if osp.isfile("Spyderdoc.chm"):
        dist.add_data_file("Spyderdoc.chm")
    dist.add_data_file(osp.join("rope", "base", "default_config.py"))
    # Building executable
    dist.build('cx_Freeze')#, create_archive='move')
Example #3
0
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    dist.setup(name="LM ratio", version="0.2",
               description=u"A gui for computing LM ratio",
               script="gui_LMratio.py", target_name="LMratio.exe")
    dist.add_data_file('dat')
    dist.add_data_file('lm_ratiorc.txt')
    dist.add_modules('guidata')
    dist.add_modules('guiqwt')
    dist.add_matplotlib()
    dist.includes += ['scipy.sparse.csgraph._validation']
    dist.includes += ['scipy.sparse.linalg.dsolve.umfpack']
    dist.excludes += ['IPython']
    # Building executable
    dist.build('cx_Freeze', cleanup=True)
Example #4
0
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    dist.setup(
        name="birdsong",
        version="0.1",
        description=u"Simple bird song analysis program",
        script="gui.pyw",
        target_name="birdsong.exe",
    )

    spyderlib.add_to_distribution(dist)
    dist.add_data_file("gitInfo.txt")
    dist.add_modules("guidata")
    dist.excludes += ["IPython", "scipy", "guiqwt"]
    # Building executable
    dist.build("cx_Freeze")
Example #5
0
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    #dist.includes += ['DatabaseWrapper', 'DataViewer', 'Utilities']
    dist.setup(name="Database", version="1.1",
               description=u"HDF5 database in a gui shell",
               script="guiMain.pyw", target_name="Database.exe")
               
    spyderlib.add_to_distribution(dist)
    dist.add_data_file('gitInfo.txt')
    dist.add_modules('guidata')
    dist.add_modules('guiqwt')
    dist.add_modules('scipy.io')
    dist.add_modules('h5py')
    dist.add_modules('spyderlib')
    dist.excludes += ['IPython']
    # Building executable
    dist.build('cx_Freeze')