summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/slepc/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/slepc/package.py b/var/spack/repos/builtin/packages/slepc/package.py
index 209d669d1a..ac350b35e8 100644
--- a/var/spack/repos/builtin/packages/slepc/package.py
+++ b/var/spack/repos/builtin/packages/slepc/package.py
@@ -37,7 +37,9 @@ class Slepc(Package):
variant('blopex', default=False, description='Enables BLOPEX wrappers')
# NOTE: make sure PETSc and SLEPc use the same python.
- depends_on('python@2.6:2.8', type='build')
+ depends_on('python@2.6:2.8', type='build', when='@:3.10.99')
+ depends_on('python@2.6:2.8,3.4:', type='build', when='@3.11:')
+
# Cannot mix release and development versions of SLEPc and PETSc:
depends_on('petsc@develop', when='@develop')
depends_on('petsc@3.11:3.11.99', when='@3.11:3.11.99')