spack/share/spack
Massimiliano Culpo 9bffa96754 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.
2017-11-15 17:38:40 -07:00
..
csh Feature Proposal : Make All Python Extensions User Configuration Independent (#1435) 2016-10-06 14:43:49 -07:00
docs/docker/module-file-tutorial SC17: reworked module file tutorial section (#5657) 2017-11-12 00:27:20 -08:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Group Travis CI jobs in stages (#5104) 2017-08-19 14:52:27 -07:00
setup-env.csh Replace github.com/llnl/spack with github.com/spack/spack (#6142) 2017-11-04 17:08:04 -07:00
setup-env.sh Reduce the calls to the python interpreter during initialization (#6312) 2017-11-15 17:38:40 -07:00
spack-completion.bash Replace github.com/llnl/spack with github.com/spack/spack (#6142) 2017-11-04 17:08:04 -07:00