Skip to content

Commit

Permalink
Merge branch 'jgfouca/cime/fix_build_env_txt_file' into master (PR #1724
Browse files Browse the repository at this point in the history
)

Fix build_environment.txt file.

Instead of copying software_environment.txt, just generate the
build_environment file from scratch at build time. This will ensure
env changes made after case.setup are reflected accurately.

Fixes #1654

[BFB]

* jgfouca/cime/fix_build_env_txt_file:
  Fix build_environment.txt file.
  • Loading branch information
jgfouca committed Aug 17, 2017
2 parents 57135af + 4713c17 commit de13e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/CIME/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def _save_build_provenance_acme(case, lid):
env_prov = os.path.join(exeroot, "build_environment.%s.txt" % lid)
if os.path.exists(env_prov):
os.remove(env_prov)
copy_umask(os.path.join(caseroot, "software_environment.txt"), env_prov)
env_module = case.get_env("mach_specific")
env_module.save_all_env_info(env_prov)

# For all the just-created post-build provenance files, symlink a generic name
# to them to indicate that these are the most recent or active.
Expand Down

0 comments on commit de13e02

Please sign in to comment.