diff options
author | scheibelp <scheibel1@llnl.gov> | 2018-01-12 19:02:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-12 19:02:54 -0800 |
commit | 278901c02cd51b5d89febbb57d5b04157ea54488 (patch) | |
tree | 5e1014a0f9e023d39d76d2f42a4cbbe8bdea1762 /lib | |
parent | 761b8f76d24ad7b5b58945477a35aaece41d5424 (diff) | |
download | spack-278901c02cd51b5d89febbb57d5b04157ea54488.tar.gz spack-278901c02cd51b5d89febbb57d5b04157ea54488.tar.bz2 spack-278901c02cd51b5d89febbb57d5b04157ea54488.tar.xz spack-278901c02cd51b5d89febbb57d5b04157ea54488.zip |
Handle test dependencies that are python extensions (#6904)
See #6794
This fixes cases where test-only dependencies were omitted from
consideration when modifying the environment at build time. This
includes an update to the python package definition to add
testing-related python extensions to its specialized environment
setup.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_environment.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index cb3bc6169e..dcc6e46ec6 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -581,7 +581,8 @@ def setup_package(pkg, dirty): # traverse in postorder so package can use vars from its dependencies spec = pkg.spec - for dspec in pkg.spec.traverse(order='post', root=False, deptype='build'): + for dspec in pkg.spec.traverse(order='post', root=False, + deptype=('build', 'test')): # If a user makes their own package repo, e.g. # spack.repos.mystuff.libelf.Libelf, and they inherit from # an existing class like spack.repos.original.libelf.Libelf, |