def package_requirements(): require_python_module( 'sklearn', { 'pip': 'scikit-learn', 'linux-debian': 'python-sklearn', 'linux-ubuntu': 'python-sklearn' })
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'})
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'})
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' })
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.")
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' })
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.')
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.')
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
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)
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()
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)
def package_requirements(): require_python_module('sklearn', { 'pip': 'scikit-learn', 'linux-debian': 'python-sklearn', 'linux-ubuntu': 'python-sklearn'})
def package_requirements(): from vistrails.core.requirements import require_python_module require_python_module('csv')
def package_requirements(): from vistrails.core.requirements import require_python_module require_python_module('file_archive', { 'pip': 'file_archive'})
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"} )
def package_requirements(): from vistrails.core.requirements import require_python_module require_python_module('file_archive', {'pip': 'file_archive'})