From a74ee4d27ac0c5bda020b2f0f78f037a21650c8e Mon Sep 17 00:00:00 2001 From: Stephen Herbein Date: Thu, 21 May 2020 20:14:26 -0700 Subject: flux: add dependency types for `python` dependency Flux requires `build` for python and many of the python packages because it builds python bindings. Beyond the bindings, the Flux front-end commands now use python too, hence the `run` type. Finally, Flux's `pymod` module is linked against the python interpreter, so the package requires a `link` dependency on python too. --- var/spack/repos/builtin/packages/flux-core/package.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/flux-core/package.py b/var/spack/repos/builtin/packages/flux-core/package.py index 6b5eb181f0..cb53c0f8ad 100644 --- a/var/spack/repos/builtin/packages/flux-core/package.py +++ b/var/spack/repos/builtin/packages/flux-core/package.py @@ -45,10 +45,13 @@ class FluxCore(AutotoolsPackage): depends_on("lua@5.1:5.2.99", when="@0.10.0:,master") depends_on("lua-luaposix") depends_on("munge", when="@0.1.0:0.10.0") - depends_on("python", type=('build', 'run')) - depends_on("python@2.7:2.99", when="@0.1.0:0.11.0") - depends_on("python@2.7:", when="@0.11.1:") - depends_on("python@3.6:", when="@0.17.0:,master") + # `link` dependency on python due to Flux's `pymod` module + depends_on("python", type=('build', 'run', 'link')) + depends_on("python@2.7:2.99", + when="@0.1.0:0.11.0", + type=('build', 'run', 'link')) + depends_on("python@2.7:", when="@0.11.1:", type=('build', 'run', 'link')) + depends_on("python@3.6:", when="@0.17.0:,master", type=('build', 'run', 'link')) depends_on("py-cffi", type=('build', 'run')) depends_on("py-six", type=('build', 'run'), when="@0.11.0:") depends_on("py-pyyaml", type=('build', 'run'), when="@0.11.0:") -- cgit v1.2.3-60-g2f50