Add utilities for running install processes and outputting debug info.

Review Request #13462 — Created Dec. 26, 2023 and submitted — Latest diff uploaded

Information

rbinstall
master

Reviewers

The new rbinstall.process module includes two utilities, debug() and
run().

debug() will output debug information to the console when the
RBINSTALL_DEBUG environment variable is set to 1, optionally showing a
custom prefix.

run() will run a command, streaming output and raising an exception on
errors. If RBINSTALL_DRY_RUN is set to 1, then the command won't
actually be run.

Successfully tested these with the rest of the installer.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

orig
1
2
3

Commits

First Last Summary ID Author
Add utilities for running install processes and outputting debug info.
The new `rbinstall.process` module includes two utilities, `debug()` and `run()`. `debug()` will output debug information to the console when the `RBINSTALL_DEBUG` environment variable is set to 1, optionally showing a custom prefix. `run()` will run a command, streaming output and raising an exception on errors. If `RBINSTALL_DRY_RUN` is set to 1, then the command won't actually be run.
20ba75cadb4d87b94e983cc018a3b1569188014c Christian Hammond
rbinstall/errors.py
rbinstall/process.py
Loading...