Add support for installing packages using a variety of methods.

Review Request #13464 — Created Dec. 27, 2023 and submitted

Information

rbinstall
master

Reviewers

This introduces an abstraction layer for installing packages using a
variety of methods. This includes:

  • apt-get build-dep
  • apt-get install
  • brew install
  • curl <url> | pythonX.Y
  • pacman
  • pip install ReviewBoard[...]
  • pip install
  • yum install
  • zypper install
  • Arbitrary shell commands

This is all done by running run_install_method() and passing in the
appropriate arguments. It will be used for package installation in an
upcoming change.

Unit tests pass.

Tested each of these with the rest of the upcoming installer changes.

Summary ID
Add support for installing packages using a variety of methods.
This introduces an abstraction layer for installing packages using a variety of methods. This includes: * `apt-get build-dep` * `apt-get install` * `brew install` * `curl <url> | pythonX.Y` * `pacman` * `pip install ReviewBoard[...]` * `pip install` * `yum install` * `zypper install` * Arbitrary shell commands This is all done by running `run_install_method()` and passing in the appropriate arguments. It will be used for package installation in an upcoming change.
43bdc609d3ea98d546a9ba0c297ada8d7095dbd6
Description From Last Updated

'subprocess.CalledProcessError' imported but unused Column: 1 Error code: F401

reviewbotreviewbot

'rbinstall.errors.InstallerError' imported but unused Column: 1 Error code: F401

reviewbotreviewbot

'typing.Optional' imported but unused Column: 1 Error code: F401

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
chipx86
Review request changed
Change Summary:
  • Added dry-run and arbitrary run() argument support for install methods.
  • Remote pyscript installs now output a simulated curl <URL> | python command.
Commits:
Summary ID
Add support for installing packages using a variety of methods.
This introduces an abstraction layer for installing packages using a variety of methods. This includes: * `apt-get build-dep` * `apt-get install` * `brew install` * `curl <url> | pythonX.Y` * `pacman` * `pip install ReviewBoard[...]` * `pip install` * `yum install` * `zypper install` * Arbitrary shell commands This is all done by running `run_install_method()` and passing in the appropriate arguments. It will be used for package installation in an upcoming change.
6460ff24a4fdd29c1e2992ba00dfb306e6adc0c1
Add support for installing packages using a variety of methods.
This introduces an abstraction layer for installing packages using a variety of methods. This includes: * `apt-get build-dep` * `apt-get install` * `brew install` * `curl <url> | pythonX.Y` * `pacman` * `pip install ReviewBoard[...]` * `pip install` * `yum install` * `zypper install` * Arbitrary shell commands This is all done by running `run_install_method()` and passing in the appropriate arguments. It will be used for package installation in an upcoming change.
aef213fb171d5ea16585765e04884630e7edcc21

Checks run (1 failed, 1 succeeded)

flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (e221efc)