Add utilities for running install processes and outputting debug info.
Review Request #13462 — Created Dec. 26, 2023 and submitted — Latest diff uploaded
The new
rbinstall.processmodule includes two utilities,debug()and
run().
debug()will output debug information to the console when the
RBINSTALL_DEBUGenvironment variable is set to 1, optionally showing a
custom prefix.
run()will run a command, streaming output and raising an exception on
errors. IfRBINSTALL_DRY_RUNis set to 1, then the command won't
actually be run.
Successfully tested these with the rest of the installer.