Peter Scheibel
31ff791180
features: Update compiler caching ( #7675 )
...
Compiler caching was using the `id()` function to refer to configuration dictionary objects. If these objects are garbage-collected, this can produce incorrect results (false positive cache hits). This change replaces `id()` with an object that keeps a reference to the config dictionary so that it is not garbage-collected.
2019-08-19 11:24:05 -07:00
Tamara Dahlgren
0ea6e0f817
features: Remove stage symlinks ( #12072 )
...
Fixes #11163
The goal of this work is to simplify stage directory structures by eliminating use of symbolic links. This means, among other things, that` $spack/var/spack/stage` will no longer be the core staging directory. Instead, the first accessible `config:build_stage` path will be used.
Spack will no longer automatically append `spack-stage` (or the like) to configured build stage directories so the onus of distinguishing the directory from other work -- so the other work is not automatically removed with a `spack clean` operation -- falls on the user.
2019-08-19 10:31:24 -07:00
Zack Galbreath
cef1e4e0b4
Do not report on packages installed from the cache ( #12336 )
...
Skip generating reports for any packages that were found in the binary cache.
2019-08-16 10:19:11 -07:00
Greg Becker
0307b5a3dc
mirrors: make spack mirror environment aware ( #12345 )
...
Allow "spack mirror" with no spec arguments to create a mirror for the
active environment (download all concretized specs in the environment)
2019-08-15 18:45:17 -07:00
Peter Scheibel
1f6befabb1
Fix "spack loads" when retrieving upstream modules ( #12203 )
...
Fixes #12062
406c791 addressed "spack module load" for upstream modules but not
the "spack module loads" command. This applies the same fixes from
406c791 to "spack module loads".
2019-08-13 11:09:40 -07:00
Massimiliano Culpo
ab4b5deb97
bugfix: Python 2.6 parsing error ( #11867 )
...
Apparently shlex.split can't deal with unicode encoded characters in
Python2.6. The solution is to convert to str before calling the
function.
2019-08-11 13:00:36 -07:00
Greg Becker
be6ac6ce6d
bugfix: nested matrices in spec lists ( #12320 )
...
* stack concretization: fix handling of variant names with dashes
* spec_list: bugfix for handling nested matrices
2019-08-08 20:53:31 -07:00
Adam J. Stewart
44f4ad7bbf
Allow Spack to uninstall external extensions without permissions ( #11991 )
...
* Allow Spack to uninstall external extensions without permissions
Raise when self.projections is not empty
2019-08-08 17:46:14 -07:00
Pariksheet Nanda
72bb7646fe
docs: fix compiler config ( #12330 )
...
It's no longer possible to set compiler flags under as an entry under
"paths" in compilers.yaml; instead the user must list these under the
"flags" section. This updates the docs accordingly.
2019-08-08 16:47:24 -07:00
Adam J. Stewart
b4862be875
Fix typo in yaml config docs ( #12312 )
2019-08-08 10:56:11 +02:00
Greg Becker
36fbd6cf4c
bugfix: spack stacks mixed dependency and non-dep constraints ( #12315 )
...
Spack stacks drop invalid dependencies applied to packages by a
spec_list matrix operation
Without this fix, Spack would raise an error if orthogonal dependency
constraints and non-dependency constraints were applied to the same
package by a matrix and the dependency constraint was invalid for
that package. This is an error, fixed by this PR.
An example failing configuration:
spack:
definitions:
- packages: [libelf, hdf5+mpi]
- compilers: ['%gcc']
- mpis: [^openmpi]
specs:
- matrix:
- $packages
- $compilers
- $mpis
2019-08-07 18:34:41 -07:00
Carson Woods
5b11f7aa4c
Fix bug where environments would ignore global path
2019-08-07 18:32:28 -06:00
Carson Woods
97e46981b9
Remove old doc from doc index
2019-08-07 18:32:28 -06:00
Carson Woods
873ac5e890
Remove old documentation for shared mode
2019-08-07 18:32:28 -06:00
Carson Woods
4d7dae5716
Remove old share command from tests
2019-08-07 18:32:28 -06:00
Carson Woods
b19f0fafcc
Remove outdate share command
2019-08-07 18:32:28 -06:00
Carson Woods
11b1bdd119
Pep8 Compliance Fix
2019-08-07 18:32:28 -06:00
Carson Woods
f749821dc2
Pep8 Compliance
2019-08-07 18:32:28 -06:00
Carson Woods
5abb20dcab
Rename test
2019-08-07 18:32:28 -06:00
Carson Woods
0c233bdd0f
Add test for validating upstream database initialization
2019-08-07 18:32:28 -06:00
Carson Woods
0f171c7ded
Replace space with = in command parameter
2019-08-07 18:32:28 -06:00
Carson Woods
b4c7520dd8
Flake8 Test Compliance
2019-08-07 18:32:28 -06:00
Carson Woods
9ab7d8f01d
Add config parameter for active upstream to set install location for modules
2019-08-07 18:32:28 -06:00
Carson Woods
a7ad344c2a
Add upstreams.yaml testing file so calls to upstreams['global] doesn't cause tests to fail
2019-08-07 18:32:28 -06:00
Carson Woods
deb2d3745c
Fix .spack-db/index.json not being created in global upstream if previously uninitialized
2019-08-07 18:32:28 -06:00
Carson Woods
ff96ec430b
Can now specify upstream of anyname through -u/--upstream flag
2019-08-07 18:32:28 -06:00
Carson Woods
d4a959736a
Flake8 Compliance Changes
2019-08-07 18:32:28 -06:00
Carson Woods
5ba51a0be0
--global option now works for both install and uninstall
2019-08-07 18:32:28 -06:00
Carson Woods
27e1140df7
Reset active directory after each global install
2019-08-07 18:32:28 -06:00
Carson Woods
7ab6af8a3b
Add scope to setting active tree to ensure that it is set at user level
2019-08-07 18:32:28 -06:00
Carson Woods
0e6e93eaac
Fix unit test config.yaml
2019-08-07 18:32:28 -06:00
Carson Woods
38f8bdd2bb
Home expansion was removed because it was no longer being used
2019-08-07 18:32:27 -06:00
Carson Woods
8e45a3fc2f
Fix flake8 compliance
2019-08-07 18:32:27 -06:00
Carson Woods
c22af99b04
Fix how upstream db paths are canonicalized
2019-08-07 18:32:27 -06:00
Carson Woods
fc3a909fbc
Set staging location to ~/.spack/var
2019-08-07 18:32:27 -06:00
Carson Woods
0f9f9f3a85
Revise default var path
2019-08-07 18:32:27 -06:00
Carson Woods
8994b4aab6
Fix flake8 compliance
2019-08-07 18:32:27 -06:00
Carson Woods
98ec366470
Set root of store object to active tree
2019-08-07 18:32:27 -06:00
Carson Woods
c61f4d7c82
Add logic to set the active install tree
2019-08-07 18:32:27 -06:00
Carson Woods
811b304230
Remove old code
2019-08-07 18:32:27 -06:00
Carson Woods
8f0c9ad409
Change name of global parameter to install_global
2019-08-07 18:32:27 -06:00
Carson Woods
6a423a5d8a
Typo fix
2019-08-07 18:32:27 -06:00
Carson Woods
23c37063bd
Add default global upstream of /opt/spack
2019-08-07 18:32:27 -06:00
Carson Woods
478f3a5a99
Fix whitespace issue
2019-08-07 18:32:27 -06:00
Carson Woods
02afb30990
Remove unit testing for shared spack mode
2019-08-07 18:32:27 -06:00
Carson Woods
06e3f15e47
Remove old shared spack code
2019-08-07 18:32:27 -06:00
Carson Woods
f13ce3540d
Add dest name of install_global to --global parameter
2019-08-07 18:32:27 -06:00
Carson Woods
7ae34087e3
Set remove old shared spack code
2019-08-07 18:32:27 -06:00
Carson Woods
54893197ed
Set staging location to be based out of users .spack directory
2019-08-07 18:32:27 -06:00
Carson Woods
80da1d50d1
Make var_path point to ~/.spack/var/spack
2019-08-07 18:32:27 -06:00