def install(self, environ, version, strict=False, locally=True): if not self.found: if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) else: global_install('Graphviz', None, brew='graphviz', port='graphviz-devel', deb='graphviz-dev', rpm='graphviz-devel') if not self.is_installed(environ, version, strict): raise Exception('Graphviz installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) else: here = os.getcwd() global_install('LZF', None, brew=os.path.join(here, 'liblzf.rb'), port='liblzf', deb='liblzf-dev', rpm='liblzf-devel') if not self.is_installed(environ, version, strict): raise Exception('LZF installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) #TODO this is a CMake build autotools_install_without_fetch(environ, src_dir, locally) else: global_install('GLFW', None, brew='glfw', port='glfw-devel', deb='libglfw-dev', rpm='glfw-devel') #TODO glfw package on CentOS/RHEL if not self.is_installed(environ, version, strict): raise Exception('GLFW installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) ## Compile with: REQUIRES_RTTI=1 ./configure --enable-optimized autotools_install_without_fetch(environ, src_dir, locally, ['--enable-optimized'], {'REQUIRES_RTTI': '1'}) else: global_install('LLVM', None, brew='llvm', port='llvm-devel', deb='libllvm-dev', rpm='llvm-devel') if not self.is_installed(environ, version, strict): raise Exception('LLVM installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if version is None: version = '4.8.0' if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) else: website = ('http://trac.osgeo.org/proj/',) global_install('PROJ4', website, brew='proj', port='libproj4', deb='libproj-dev', rpm='proj-devel') if not self.is_installed(environ, version, strict): raise Exception('Proj4 installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) if locally: autotools_install_without_fetch(environ, src_dir, locally, extra_cfg=['--enable-static', '--enable-shared'], addtnl_env={'CFLAGS': '-fPIC'} ) else: global_install('MPICH', None, brew='mpich2', port='mpich-devel', deb='libmpich2-dev', rpm='mpich2-devel') if not self.is_installed(environ, version, strict): raise Exception('MPICH2 installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if locally: src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) else: if version is None: version = '1.6.4' website = ('http://www.open-mpi.org/', 'software/ompi/v' + '.'.join(version.split('.')[:2]) + '/downloads/') global_install('OpenMPI', website, brew='open-mpi', port='openmpi', deb='libopenmpi-dev', rpm='openmpi-devel') if not self.is_installed(environ, version, strict): raise Exception('OPENMPI2 installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: if locally or "windows" in platform.system().lower(): src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) else: global_install( "FreeImage", None, brew="freeimage", port="freeimage-devel", deb="libfreeimage-dev", rpm="freeimage-devel", ) if not self.is_installed(environ, version, strict): raise Exception("FreeImage installation failed.")
def install(self, environ, version, strict=False, locally=True): if not self.found: env = dict() if 'windows' in platform.system().lower(): env['LIBS'] = '-lws2_32' try: ## zlib prerequisite check_call(['mingw-get', 'install', 'libz-dev']) except subprocess.CalledProcessError: pass if locally or 'windows' in platform.system().lower(): src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally, extra_cfg=['--enable-cxx','--enable-fortran'], addtnl_env=env) else: global_install('HDF5', None, brew='hdf5', port='hdf5', deb='libhdf5-dev', rpm='hdf5-devel') if not self.is_installed(environ, version, strict): raise Exception('HDF5 installation failed.')
def install(self, environ, version, strict=False, locally=True): if not self.found: src_dir = self.download(environ, version, strict) autotools_install_without_fetch(environ, src_dir, locally) if not self.is_installed(environ, version, strict): raise Exception('ANTLR-C runtime installation failed.')