Skip to content

Commit

Permalink
Default view to false
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Jan 1, 2024
1 parent d23f6a3 commit 231ad31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
19 changes: 12 additions & 7 deletions manager/environment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,26 @@
class SpackManagerEnvironmentManifest(senv.EnvironmentManifestFile):
"""Spack-Manager extensiont to the manifest file for prototyping"""

def set_config_value(self, root, key, value):
def set_config_value(self, root, key, value=None):
"""Set/overwrite a config value
Args:
root: config root (i.e. config, packages, etc)
key: next level where we will be updating
value: value to set
"""
if root not in self.pristine_configuration:
self.pristine_configuration[root] = {}
if root not in self.configuration:
self.configuration[root] = {}
if value:
if root not in self.pristine_configuration:
self.pristine_configuration[root] = {}
if root not in self.configuration:
self.configuration[root] = {}

self.pristine_configuration.get(root, {})[key] = value
self.configuration.get(root, {})[key] = value
else:
self.pristine_configuration[root] = key
self.configuration[root] = key

self.pristine_configuration.get(root, {})[key] = value
self.configuration.get(root, {})[key] = value
self.changed = True

def append_includes(self, value):
Expand Down
3 changes: 1 addition & 2 deletions manager/manager_cmds/create_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@


def create_env(parser, args):
if args.yaml:
assert os.path.isfile(args.yaml)
if args.name is not None:
theDir = environment.create(args.name, init_file=args.yaml, keep_relative=True).path
else:
Expand All @@ -40,6 +38,7 @@ def create_env(parser, args):

if not args.yaml:
manifest.set_config_value("concretizer", "unify", True)
manifest.set_config_value("view", False)

if args.spec:
spec_list = spack.cmd.parse_specs(args.spec)
Expand Down

0 comments on commit 231ad31

Please sign in to comment.