summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTodd Gamblin <gamblin2@llnl.gov>2021-03-07 13:37:26 -0800
committerGitHub <noreply@github.com>2021-03-07 13:37:26 -0800
commit8d3272f82dba4959ac3da068720d9befbf3ca044 (patch)
tree202c69956ada2f8f31fa695a7cb958d063ef5b78 /share
parent7aa5cc241d403414e76a07c8f9c77323d2c12e66 (diff)
downloadspack-8d3272f82dba4959ac3da068720d9befbf3ca044.tar.gz
spack-8d3272f82dba4959ac3da068720d9befbf3ca044.tar.bz2
spack-8d3272f82dba4959ac3da068720d9befbf3ca044.tar.xz
spack-8d3272f82dba4959ac3da068720d9befbf3ca044.zip
spack python: add --path option (#22006)
This adds a `--path` option to `spack python` that shows the `python` interpreter that Spack is using. e.g.: ```console $ spack python --path /Users/gamblin2/src/spack/var/spack/environments/default/.spack-env/view/bin/python ``` This is useful for debugging, and we can ask users to run it to understand what python Spack is picking up via preferences in `bin/spack` and via the `SPACK_PYTHON` environment variable introduced in #21222.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/spack-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/spack-completion.bash b/share/spack/spack-completion.bash
index 4653a753b7..62645bd6ac 100755
--- a/share/spack/spack-completion.bash
+++ b/share/spack/spack-completion.bash
@@ -1385,7 +1385,7 @@ _spack_pydoc() {
_spack_python() {
if $list_options
then
- SPACK_COMPREPLY="-h --help -V --version -c -i -m"
+ SPACK_COMPREPLY="-h --help -V --version -c -i -m --path"
else
SPACK_COMPREPLY=""
fi