From aaad65fbd82cc6e89ae4546f6cb462c6206a2fb9 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Tue, 13 Jul 2021 15:12:10 +0200 Subject: [PATCH] graphviz: add python dependency to fix installation (#24852) The bootstrap script in the autoreconf procedure calls the gen_version.py script which requires python 3.6 to process f-strings. --- var/spack/repos/builtin/packages/graphviz/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/graphviz/package.py b/var/spack/repos/builtin/packages/graphviz/package.py index 7274f79ad1e..70d19853846 100644 --- a/var/spack/repos/builtin/packages/graphviz/package.py +++ b/var/spack/repos/builtin/packages/graphviz/package.py @@ -116,6 +116,8 @@ class Graphviz(AutotoolsPackage): depends_on('sed', type='build') depends_on('libtool', type='build') depends_on('pkgconfig', type='build') + # to process f-strings used in gen_version.py + depends_on('python@3.6:', when='@2.47:', type='build') conflicts('~doc', when='@:2.45',