summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/tau/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py
index 37bcee5cdb..75472681ab 100644
--- a/var/spack/repos/builtin/packages/tau/package.py
+++ b/var/spack/repos/builtin/packages/tau/package.py
@@ -126,10 +126,12 @@ class Tau(Package):
depends_on("elf", when="+elf")
# TAU requires the ELF header support, libiberty and demangle.
depends_on("binutils+libiberty+headers+plugins", when="+binutils")
- # Build errors with Python 3.9
- depends_on("python@2.7:3.8", when="@:2.31.0+python")
- # python 3.11 doesn't work as of 2.32
- depends_on("python@2.7:3.10", when="@2.31.1:+python")
+ with when("+python"):
+ depends_on("python@2.7:")
+ # Build errors with Python 3.9
+ depends_on("python@:3.8", when="@:2.31.0")
+ # python 3.11 doesn't work in the 2.32 releases
+ depends_on("python@:3.10", when="@:2.32.1")
depends_on("libunwind", when="+libunwind")
depends_on("mpi", when="+mpi", type=("build", "run", "link"))
depends_on("cuda", when="+cuda")