예제 #1
0
def package_requirements():
    require_python_module(
        'sklearn', {
            'pip': 'scikit-learn',
            'linux-debian': 'python-sklearn',
            'linux-ubuntu': 'python-sklearn'
        })
예제 #2
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('suds', {
            'pip': 'suds',
            'linux-debian': 'python-suds',
            'linux-ubuntu': 'python-suds',
            'linux-fedora': 'python-suds'})
예제 #3
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('pymongo', {
            'pip': 'pymongo',
            'linux-debian': 'python-pymongo',
            'linux-ubuntu': 'python-sqlalchemy',
            'linux-fedora': 'pymongo'})
예제 #4
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module(
        'pymongo', {
            'pip': 'pymongo',
            'linux-debian': 'python-pymongo',
            'linux-ubuntu': 'python-sqlalchemy',
            'linux-fedora': 'pymongo'
        })
예제 #5
0
def package_requirements():
    from vistrails.core.requirements import require_python_module, python_module_exists

    require_python_module(
        "vtk", {"linux-debian": "python-vtk", "linux-ubuntu": "python-vtk", "linux-fedora": "vtk-python"}
    )
    if not python_module_exists("PyQt4"):
        from vistrails.core import debug

        debug.warning("PyQt4 is not available. There will be no interaction " "between VTK and the spreadsheet.")
예제 #6
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    # require_python_module('csv')
    require_python_module(
        'sqlalchemy', {
            'pip': 'SQLAlchemy',
            'linux-debian': 'python-sqlalchemy',
            'linux-ubuntu': 'python-sqlalchemy',
            'linux-fedora': 'python-sqlalchemy'
        })
예제 #7
0
def package_requirements():
    from vistrails.core.requirements import require_python_module, \
        python_module_exists
    require_python_module('vtk', {
            'linux-debian': 'python-vtk',
            'linux-ubuntu': 'python-vtk',
            'linux-fedora': 'vtk-python'})
    if not python_module_exists('PyQt4'):
        from vistrails.core import debug
        debug.warning('PyQt4 is not available. There will be no interaction '
                      'between VTK and the spreadsheet.')
예제 #8
0
def package_requirements():
    from vistrails.core.requirements import require_python_module, \
        python_module_exists
    require_python_module(
        'vtk', {
            'linux-debian': 'python-vtk',
            'linux-ubuntu': 'python-vtk',
            'linux-fedora': 'vtk-python'
        })

    from vistrails.gui.requirements import require_pyqt4_api2
    try:
        require_pyqt4_api2()
    except MissingRequirement:
        debug.warning('PyQt4 is not available. There will be no interaction '
                      'between VTK and the spreadsheet.')
예제 #9
0
def qt_available():
    try:
        require_python_module('sip')
        setNewPyQtAPI()
        require_python_module('PyQt4.QtGui')
        require_python_module('PyQt4.QtOpenGL')
    except MissingRequirement:
        return False
    else:
        return True
예제 #10
0
def qt_available():
    try:
        require_python_module('sip')
        setNewPyQtAPI()
        require_python_module('PyQt4.QtGui')
        require_python_module('PyQt4.QtOpenGL')
    except MissingRequirement:
        return False
    else:
        return True
예제 #11
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('numpy', {
            'pip': 'numpy',
            'linux-debian': 'python-numpy',
            'linux-ubuntu': 'python-numpy',
            'linux-fedora': 'numpy'})
    mpl_dict = {'pip': 'matplotlib',
                'linux-debian': 'python-matplotlib',
                'linux-ubuntu': 'python-matplotlib',
                'linux-fedora': 'python-matplotlib'}
    require_python_module('matplotlib', mpl_dict)
    require_python_module('pylab', mpl_dict)
예제 #12
0
def require_pyqt4_api2():
    try:
        require_python_module('sip')
        setNewPyQtAPI()
        require_python_module('PyQt4.QtGui')
        require_python_module('PyQt4.QtOpenGL')
    except MissingRequirement:
        r = vistrails.gui.bundles.installbundle.install({
            'linux-debian': ['python-qt4', 'python-qt4-gl', 'python-qt4-sql'],
            'linux-ubuntu': ['python-qt4', 'python-qt4-gl', 'python-qt4-sql'],
            'linux-fedora': ['PyQt4'],
            'pip': ['PyQt<5.0']})
        if not r:
            raise
        setNewPyQtAPI()
예제 #13
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module(
        'numpy', {
            'pip': 'numpy',
            'linux-debian': 'python-numpy',
            'linux-ubuntu': 'python-numpy',
            'linux-fedora': 'numpy'
        })
    mpl_dict = {
        'pip': 'matplotlib',
        'linux-debian': 'python-matplotlib',
        'linux-ubuntu': 'python-matplotlib',
        'linux-fedora': 'python-matplotlib'
    }
    require_python_module('matplotlib', mpl_dict)
    require_python_module('pylab', mpl_dict)
예제 #14
0
def package_requirements():
    require_python_module('sklearn', {
                          'pip': 'scikit-learn',
                          'linux-debian': 'python-sklearn',
                          'linux-ubuntu': 'python-sklearn'})
예제 #15
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('csv')
예제 #16
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('csv')
예제 #17
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('file_archive', {
            'pip': 'file_archive'})
예제 #18
0
def package_requirements():
    from vistrails.core.requirements import require_python_module

    require_python_module(
        "ZSI", {"pip": "zsi", "linux-debian": "python-zsi", "linux-ubuntu": "python-zsi", "linux-fedora": "python-ZSI"}
    )
예제 #19
0
def package_requirements():
    from vistrails.core.requirements import require_python_module
    require_python_module('file_archive', {'pip': 'file_archive'})