add support for installing the development (master) version of PETSc (#2431)

Funded-by:  IDEAS
Project:  IDEAS/xSDK
Time:   .3 hours
x
This commit is contained in:
Barry Smith
2016-11-29 09:28:09 -06:00
committed by Todd Gamblin
parent a6d579ea15
commit 4d56d4f1f9
2 changed files with 47 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class Petsc(Package):
homepage = "http://www.mcs.anl.gov/petsc/index.html"
url = "http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-3.5.3.tar.gz"
version('develop', git='https://bitbucket.org/petsc/petsc.git', tag='master')
version('3.7.4', 'aaf94fa54ef83022c14091f10866eedf')
version('3.7.2', '50da49867ce7a49e7a0c1b37f4ec7b34')
version('3.6.4', '7632da2375a3df35b8891c9526dbdde7')
@@ -67,6 +68,9 @@ class Petsc(Package):
description='Activates support for SuperluDist (only parallel)')
# Virtual dependencies
# Git repository needs sowing to build Fortran interface
depends_on('sowing', when='@develop')
depends_on('blas')
depends_on('lapack')
depends_on('mpi', when='+mpi')
@@ -127,6 +131,7 @@ def mpi_dependent_options(self):
def install(self, spec, prefix):
options = ['--with-ssl=0',
'--download-c2html=0',
'--download-sowing=0',
'--download-hwloc=0']
options.extend(self.mpi_dependent_options())
options.extend([