summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-03-07 16:05:45 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-03-07 07:05:45 -0800
commitf1d66467e33e26c5d4e73cf94858c6222a8ca00b (patch)
treef123a24b41d7685f7ea174846f9d348fb31b8690 /lib
parentc6d9a45f18cedd810cdee891d462199f86dc6a7c (diff)
downloadspack-f1d66467e33e26c5d4e73cf94858c6222a8ca00b.tar.gz
spack-f1d66467e33e26c5d4e73cf94858c6222a8ca00b.tar.bz2
spack-f1d66467e33e26c5d4e73cf94858c6222a8ca00b.tar.xz
spack-f1d66467e33e26c5d4e73cf94858c6222a8ca00b.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/package.py4
1 files changed, 3 insertions, 1 deletions
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.