slepc/petsc: fix python dependency (#2560)
This commit is contained in:
parent
8496d8ff77
commit
fab9af7081
@ -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')
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user