buildcache install: generate modules (#9509)

Spack packages installed using spack buildcache were not running
post-install hooks, which create module files and manage licenses
(if necessary).

This was already occurring for Spack packages installed with
spack install --use-cache
This commit is contained in:
Peter Scheibel 2018-10-12 10:43:06 -07:00 committed by GitHub
parent b0430457aa
commit 6977d933c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,6 +254,7 @@ def install_tarball(spec, args):
tty.msg('Installing buildcache for spec %s' % spec.format()) tty.msg('Installing buildcache for spec %s' % spec.format())
bindist.extract_tarball(spec, tarball, args.allow_root, bindist.extract_tarball(spec, tarball, args.allow_root,
args.unsigned, args.force) args.unsigned, args.force)
spack.hooks.post_install(spec)
spack.store.store.reindex() spack.store.store.reindex()
else: else:
tty.die('Download of binary cache file for spec %s failed.' % tty.die('Download of binary cache file for spec %s failed.' %