diff options
author | Michael Kuhn <michael.kuhn@ovgu.de> | 2021-06-04 13:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-04 11:18:55 +0000 |
commit | d5d1d9548f6f28b8427ed511e053456a799d4001 (patch) | |
tree | 858d92c10e27fc986c8a8a3e59f90047acc89a5f | |
parent | e28e6d2618d1e1e4f2e04a6747920b975ccb040a (diff) | |
download | spack-d5d1d9548f6f28b8427ed511e053456a799d4001.tar.gz spack-d5d1d9548f6f28b8427ed511e053456a799d4001.tar.bz2 spack-d5d1d9548f6f28b8427ed511e053456a799d4001.tar.xz spack-d5d1d9548f6f28b8427ed511e053456a799d4001.zip |
cmd/stage: print stage path (#24019)
This is a small quality of life improvement so that users can easily
copy and paste the stage path after executing `spack stage spec`.
-rw-r--r-- | lib/spack/spack/cmd/stage.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/stage.py b/lib/spack/spack/cmd/stage.py index bd3b984606..9e41f1b005 100644 --- a/lib/spack/spack/cmd/stage.py +++ b/lib/spack/spack/cmd/stage.py @@ -40,6 +40,8 @@ def stage(parser, args): for spec in env.specs_by_hash.values(): for dep in spec.traverse(): dep.package.do_stage() + tty.msg("Staged {0} in {1}".format(dep.package.name, + dep.package.stage.path)) return else: tty.die("`spack stage` requires a spec or an active environment") @@ -62,3 +64,4 @@ def stage(parser, args): if custom_path: package.path = custom_path package.do_stage() + tty.msg("Staged {0} in {1}".format(package.name, package.stage.path)) |