summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2024-11-29 20:04:56 +0100
committerGitHub <noreply@github.com>2024-11-29 13:04:56 -0600
commit9760089089aff60b6761d5eccf284d317ac50a0c (patch)
tree36c80d0b8213214035571b6e7e3b60603b630ae5
parentda7c5c551daa8feb69158f7bbfb876c778aba0aa (diff)
downloadspack-9760089089aff60b6761d5eccf284d317ac50a0c.tar.gz
spack-9760089089aff60b6761d5eccf284d317ac50a0c.tar.bz2
spack-9760089089aff60b6761d5eccf284d317ac50a0c.tar.xz
spack-9760089089aff60b6761d5eccf284d317ac50a0c.zip
VTK: mark Python version compatibility (#47814)
* VTK: mark Python version compatibility * VTK 8.2.0 also only supports Python 3.7
-rw-r--r--var/spack/repos/builtin/packages/vtk/package.py17
1 files changed, 9 insertions, 8 deletions
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")