stuffer.pip module

Installing Python packages with pip.

class stuffer.pip.Install(package: Union[str, stuffer.content.DeferStr], upgrade: bool = False, bootstrap: bool = True)[source]

Bases: stuffer.core.Action

Install a package with pip install.

package
Name of package. Names may include version specification, e.g. “==1.2.3”, which is passed on to pip install.”
upgrade
Whether to upgrade an already installed package, i.e. pass the --upgrade flag.
bootstrap
If true (default), ensure that the pip command is installed first.
command()[source]

Shell command to run. Override this or run().

Should either return a list of strings to pass to subprocess.check_output, or a string, in which case shell=True will be passed with subprocess.check_output..

prerequisites()[source]