コード例 #1
0
ファイル: create_exe.py プロジェクト: ShenggaoZhu/spyder
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')
コード例 #2
0
ファイル: create_exe.py プロジェクト: M155K4R4/Spidr
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')
コード例 #3
0
ファイル: create_exe.py プロジェクト: PierreRaybaut/guiqwt
def create_executable():
    """Build executable using ``guidata.disthelpers``"""
    dist = Distribution()
    dist.setup(name="Sift", version=sift.VERSION,
               description="Signal and Image Filtering Tool",
               script="sift.pyw", target_name="sift.exe",
               target_dir="%s-%s" % ("Sift", sift.VERSION), icon="sift.ico")
    dist.add_modules('guidata', 'guiqwt')
    try:
        import spyderlib
        spyderlib.add_to_distribution(dist)
    except ImportError:
        try:
            import spyder
            spyder.add_to_distribution(dist)
        except ImportError:
            pass
    dist.excludes += ['IPython']

    # Building executable
    dist.build('cx_Freeze', create_archive='move')
コード例 #4
0
ファイル: create_exe.py プロジェクト: qinghhua/plotpy
def create_executable():
    """Build executable using ``plotpy.disthelpers``"""
    dist = Distribution()
    dist.setup(name="Sift",
               version=sift.VERSION,
               description="Signal and Image Filtering Tool",
               script="sift.pyw",
               target_name="sift.exe",
               target_dir="%s-%s" % ("Sift", sift.VERSION),
               icon="sift.ico")
    dist.add_modules('plotpy', 'plotpy')
    try:
        import spyderlib
        spyderlib.add_to_distribution(dist)
    except ImportError:
        try:
            import spyder
            spyder.add_to_distribution(dist)
        except ImportError:
            pass
    dist.excludes += ['IPython']

    # Building executable
    dist.build('cx_Freeze', create_archive='move')