From 9760089089aff60b6761d5eccf284d317ac50a0c Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Fri, 29 Nov 2024 20:04:56 +0100 Subject: VTK: mark Python version compatibility (#47814) * VTK: mark Python version compatibility * VTK 8.2.0 also only supports Python 3.7 --- var/spack/repos/builtin/packages/vtk/package.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/vtk/package.py b/var/spack/repos/builtin/packages/vtk/package.py index 10e941e8dc..e972c5b582 100644 --- a/var/spack/repos/builtin/packages/vtk/package.py +++ b/var/spack/repos/builtin/packages/vtk/package.py @@ -87,14 +87,15 @@ class Vtk(CMakePackage): conflicts("%gcc@13", when="@9.2") - with when("+python"): - # Depend on any Python, add bounds below. - extends("python@2.7:", type=("build", "run")) - depends_on("python@:3.7", when="@:8.2.0", type=("build", "run")) - # Python 3.8 support from vtk 9 and patched 8.2 - depends_on("python@:3.8", when="@:8.2.1a", type=("build", "run")) - # Python 3.10 support from vtk 9.2 - depends_on("python@:3.9", when="@:9.1", type=("build", "run")) + # Based on PyPI wheel availability + with when("+python"), default_args(type=("build", "link", "run")): + depends_on("python@:3.13") + depends_on("python@:3.12", when="@:9.3") + depends_on("python@:3.11", when="@:9.2") + depends_on("python@:3.10", when="@:9.2.2") + depends_on("python@:3.9", when="@:9.1") + depends_on("python@:3.8", when="@:9.0.1") + depends_on("python@:3.7", when="@:8.2.0") # We need mpi4py if buidling python wrappers and using MPI depends_on("py-mpi4py", when="+python+mpi", type="run") -- cgit v1.2.3-70-g09d2