Add --source option to spack install (#4102)

- -- source will copy source into prefix along with the package.
- added a test for --source, as well
This commit is contained in:
Christoph Junghans
2017-08-23 15:08:52 -06:00
committed by Todd Gamblin
parent 359b21c888
commit fa1d0a8a4d
4 changed files with 28 additions and 1 deletions

View File

@@ -456,7 +456,7 @@ function _spack_install {
then
compgen -W "-h --help --only -j --jobs --keep-prefix --keep-stage
-n --no-checksum -v --verbose --fake --clean --dirty
--run-tests --log-format --log-file" -- "$cur"
--run-tests --log-format --log-file --source" -- "$cur"
else
compgen -W "$(_all_packages)" -- "$cur"
fi