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 dddaf62
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 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
4 changes: 0 additions & 4 deletions manager/manager_cmds/create_dev_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ def create_dev_env(parser, args):
if env.is_develop(s) and "path" in yaml["spack"]["develop"][str(s.name)]:
# keep pointing to the original path that is provided in the spack.yaml
dev_args.extend(["--path", yaml["spack"]["develop"][str(s.name)]["path"]])
elif "nalu-wind" in str(s.name):
dev_args.extend(["-rb", "git@github.com:Exawind/nalu-wind.git", str(s.version)])
elif "trilinos" in str(s.name):
dev_args.extend(["-rb", "git@github.com:trilinos/trilinos.git", str(s.version)])
dev_args.append(str(s.format("{name}{@version}")))
develop(*dev_args)
ev.deactivate()
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 dddaf62

Please sign in to comment.