slepc/petsc: fix python dependency (#2560)

This commit is contained in:
Denis Davydov 2016-12-13 10:32:42 +01:00 committed by Todd Gamblin
parent 8496d8ff77
commit fab9af7081
2 changed files with 5 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class Petsc(Package):
depends_on('mpi', when='+mpi')
# Build dependencies
depends_on('python @2.6:2.7')
depends_on('python @2.6:2.7', type='build')
# Other dependencies
depends_on('boost', when='@:3.5+boost')

View File

@ -41,6 +41,8 @@ class Slepc(Package):
variant('arpack', default=True, description='Enables Arpack wrappers')
# NOTE: make sure PETSc and SLEPc use the same python.
depends_on('python@2.6:2.7', type='build')
depends_on('petsc@3.7:', when='@3.7.1:')
depends_on('petsc@3.6.3:3.6.4', when='@3.6.2:3.6.3')
depends_on('arpack-ng~mpi', when='+arpack^petsc~mpi')