Skip to content

Commit

Permalink
[SCons] Update formatting of post-install message
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and bryanwweber committed Jun 12, 2022
1 parent eff0b66 commit 8ee17a4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions SConstruct
Expand Up @@ -2053,12 +2053,7 @@ def postInstallMessage(target, source, env):
"data files": "ct_datadir",
"input file converters": "ct_pyscriptdir",
}
install_message = textwrap.dedent("""
Cantera has been successfully installed.
File locations:
"""
).splitlines()
install_message = ["File locations:\n"]
locations_message = " {name:<28}{location}"
for name, location in locations.items():
install_message.append(locations_message.format(
Expand Down Expand Up @@ -2095,12 +2090,12 @@ def postInstallMessage(target, source, env):
{matlab_ctpath_loc!s}
""".format(**env_dict)))

install_message.append("")

logger.info(
textwrap.indent("\n".join(install_message), 4*" "),
print_level=False
)
install_message = [
f"\n{' Cantera has been successfully installed ':*^88}\n",
"\n".join(install_message),
f"\n{'*' * 88}\n",
]
logger.info("\n".join(install_message), print_level=False)

finish_install = env.Command("finish_install", [], postInstallMessage)
env.Depends(finish_install, installTargets)
Expand Down

0 comments on commit 8ee17a4

Please sign in to comment.