Newer
Older
"--toolchains", # first option defines attribute
# name `args.toolchains` in `args = parser_args()`
"--toolchain", # allow singular as alternative
# (-> creates attribute `args.toolchains` if used)
dest="toolchains",
default="NONE",
help=tool_chain_help,
)
subp.add_argument(
"--enable-build-cache",
action="store_true",
"Enable Spack build cache. Useful for reinstallation but "
"consumes time and disk space."
# Carry out the action
args = parser.parse_args()
# target dir is the place where this script exists. the
root_dir = Path(os.path.dirname(os.path.realpath(__file__)))
get_installer_log_file_path(args.release, args.action, root_dir),
remove_environment(args.release, args.toolchains, root_dir)
elif args.action == "start-new":
start_new_environment(args.from_release, args.to_release, root_dir)
args.release, args.toolchains, root_dir, False, args.enable_build_cache
prepare_environment(args.release, root_dir)
get_available_toolchains(args.release)
message = (
f"No known action found ({args.action=}). Should probably never happen."
)
logging.error(message)
raise NotImplementedError(message)