From f1d66467e33e26c5d4e73cf94858c6222a8ca00b Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 7 Mar 2017 16:05:45 +0100 Subject: package.py: packages dump build dependencies in prefix (#3373) Modifications: - `dump_packages` copies build dependencies into `$prefix/.spack`, as well as the link/run dependencies that we already copied there. - fake installs copy dependency packages into `$prefix/.spack` as well --- lib/spack/spack/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 3be3bffc70..8889de7576 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1058,6 +1058,8 @@ class PackageBase(object): touch(join_path(self.prefix.lib, library_name + dso_suffix)) touch(join_path(self.prefix.lib, library_name + '.a')) mkdirp(self.prefix.man1) + packages_dir = spack.store.layout.build_packages_path(self.spec) + dump_packages(self.spec, packages_dir) def _if_make_target_execute(self, target): try: @@ -1816,7 +1818,7 @@ def dump_packages(spec, path): # Note that we copy them in as they are in the *install* directory # NOT as they are in the repository, because we want a snapshot of # how *this* particular build was done. - for node in spec.traverse(): + for node in spec.traverse(deptype=spack.alldeps): if node is not spec: # Locate the dependency package in the install tree and find # its provenance information. -- cgit v1.2.3-70-g09d2