summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorStephen Herbein <stephen272@gmail.com>2020-05-21 20:14:26 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2020-05-22 19:37:47 -0700
commita74ee4d27ac0c5bda020b2f0f78f037a21650c8e (patch)
treed712e4ca858bccefafa5e2714507728b1305c65c /var
parent9e3470d797bd33bb62273de771d6955e7d7682ea (diff)
downloadspack-a74ee4d27ac0c5bda020b2f0f78f037a21650c8e.tar.gz
spack-a74ee4d27ac0c5bda020b2f0f78f037a21650c8e.tar.bz2
spack-a74ee4d27ac0c5bda020b2f0f78f037a21650c8e.tar.xz
spack-a74ee4d27ac0c5bda020b2f0f78f037a21650c8e.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/flux-core/package.py11
1 files changed, 7 insertions, 4 deletions
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:")