diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-11-15 17:38:40 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-11-15 17:38:40 -0700 |
commit | 9bffa967546a061022f4d8bcae3cb4f63874b614 (patch) | |
tree | c00d75c33053dcecfbc7fcd192b45e584851b7f4 /.flake8_packages | |
parent | 9d1224e5d8e40d88f5f60149aee4b4ab0e9c6d58 (diff) | |
download | spack-9bffa967546a061022f4d8bcae3cb4f63874b614.tar.gz spack-9bffa967546a061022f4d8bcae3cb4f63874b614.tar.bz2 spack-9bffa967546a061022f4d8bcae3cb4f63874b614.tar.xz spack-9bffa967546a061022f4d8bcae3cb4f63874b614.zip |
Reduce the calls to the python interpreter during initialization (#6312)
* Reduce the calls to the python interpreter during initialization
This should reduce the delay the users experience when sourcing the
setup file to activate shell support. It works by generating at once
all the commands that needs to evaluated (they are stored in
a string and later `eval`ed by the shell).
* setup_env.sh: changed `read` with an equivalent magic
For some reason `read` breaks when sourced from a running script.
Change the incantation we use to construct the unique python command
that will be evaluated.
* setup_env.sh: python command now constructed with `printf` for portability
This recovers the support for `zsh` that was broken in previous commits.
Diffstat (limited to '.flake8_packages')
0 files changed, 0 insertions, 0 deletions