diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2019-06-20 11:09:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 11:09:31 -0700 |
commit | 284ae9d1ccac953600981b41b13effbf2385806b (patch) | |
tree | c0cb1e49a12504f1e4006c8496d20692920cde42 /.gitignore | |
parent | 4858d8c275b73dfeb2f15c5d30eb894775c9742b (diff) | |
download | spack-284ae9d1ccac953600981b41b13effbf2385806b.tar.gz spack-284ae9d1ccac953600981b41b13effbf2385806b.tar.bz2 spack-284ae9d1ccac953600981b41b13effbf2385806b.tar.xz spack-284ae9d1ccac953600981b41b13effbf2385806b.zip |
Resources: use expanded archive name by default (#11688)
For resources, it is desirable to use the expanded archive name of
the resource as the name of the directory when adding it to the root
staging area.
#11528 established 'spack-src' as the universal directory where
source files are placed, which also affected the behavior of
resources managed with Stages.
This adds a new property ('srcdir') to Stage to remember the name of
the expanded source directory, and uses this as the default name when
placing a resource directory in the root staging area.
This also:
* Ensures that downloaded sources are archived using the expanded
archive name (otherwise Spack will not be able to determine the
original directory name when using a cached archive).
* Updates working_dir context manager to guarantee restoration of
original working directory when an exception occurs
* Adds a "temp_cwd" context manager which creates a temporary
directory and sets it as the working directory
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions