summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-10-27 10:57:27 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-30 23:55:00 -0700
commit9347f86939f3dea9d8d8ea723c238cd4f8c518a6 (patch)
treec591fa17eff601340f3378b5eb429400c316d22e /etc
parent24901f7a3889a5dbc411179e61cae05bc1cb3953 (diff)
downloadspack-9347f86939f3dea9d8d8ea723c238cd4f8c518a6.tar.gz
spack-9347f86939f3dea9d8d8ea723c238cd4f8c518a6.tar.bz2
spack-9347f86939f3dea9d8d8ea723c238cd4f8c518a6.tar.xz
spack-9347f86939f3dea9d8d8ea723c238cd4f8c518a6.zip
Rename install.yaml -> config.yaml, install_area -> "store"
- Added a schema for config.yaml - Moved install tree configuration to config.yaml - Moved etc/spack/install.yaml to etc/spack/defaults/config.yaml - renamed install_area to "store", to use a term in common with guix/nix. - in `config.yaml` file, it's called the `install_tree` to be more intuitive to users. - `install_tree` might've worked in the code, but `install_tree` is already a global function in the spack namespace, from llnl.util.filesystem.
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/config.yaml64
-rw-r--r--etc/spack/install.yaml8
2 files changed, 64 insertions, 8 deletions
diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml
new file mode 100644
index 0000000000..5ce60049ce
--- /dev/null
+++ b/etc/spack/defaults/config.yaml
@@ -0,0 +1,64 @@
+# -------------------------------------------------------------------------
+# This is the default spack configuration file.
+#
+# Settings here are versioned with Spack and are intended to provide
+# sensible defaults out of the box. Spack maintainers should edit this
+# file to keep it current.
+#
+# Users can override these settings by editing the following files.
+#
+# Per-spack-instance settings (overrides defaults):
+# $SPACK_ROOT/etc/spack/config.yaml
+#
+# Per-user settings (overrides default and site settings):
+# ~/.spack/config.yaml
+# -------------------------------------------------------------------------
+config:
+
+ # Precedence of configuration scopes, high to low.
+ # The user can override this paradoxically.
+ # scopes: [user, spack, default]
+
+
+ # This is the path to the root of the Spack install tree.
+ # You can use $spack here to refer to the root of the spack instance.
+ install_tree: $spack/opt/spack
+
+
+ # Temporary locations Spack can try to use for builds.
+ #
+ # Spack will use the first one it finds that exists and is writable.
+ # You can use $tempdir to refer to the system default temp directory
+ # (as returned by tempfile.gettempdir()).
+ #
+ # A value of $local indicates that Spack should run builds directly
+ # inside its install directory without staging them in temporary space.
+ build_stage:
+ - /usr/workspace/*/%u
+ - $tempdir
+ - /nfs/tmp2/%u
+ - $local
+
+
+ # Cache directory already downloaded source tarballs and archived
+ # repositories. This can be purged with spack purge
+ source_cache: $spack/var/spack/cache
+
+
+ # Cache directory for miscellaneous files, like the package index.
+ misc_cache: ~/.spack/cache
+
+
+ # If this is false, tools like curl that use SSL will not verify
+ # certifiates. (e.g., curl will use use the -k option)
+ verify_ssl: true
+
+
+ # If set to true, Spack will always check checksums after downloading
+ # archives. If false, Spack skips the checksum step.
+ checksum: true
+
+
+ # If set to true, `spack install` and friends will NOT clean
+ # potentially harmful variables from the build environment. Use wisely.
+ dirty: false
diff --git a/etc/spack/install.yaml b/etc/spack/install.yaml
deleted file mode 100644
index 553d09f13e..0000000000
--- a/etc/spack/install.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-# -------------------------------------------------------------------------
-# This is the default spack install setup configuration.
-#
-# Changes to this file will affect all users of this spack install
-# -------------------------------------------------------------------------
-install:
- path: $spack/opt/spack
- layout : YamlDirectoryLayout \ No newline at end of file