Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pip Processor

Purpose

Installs Python dependencies from requirements.txt files using pip.

How It Works

Discovers requirements.txt files in the project and runs pip install -r in each file’s directory. After a successful install it writes a deterministic install stamp, out/processor.mass_generator.pip/root.stamp for a root requirements.txt (or <dir>.stamp with / turned into _ otherwise), so dependencies are only reinstalled when requirements.txt (or a dep_inputs file) changes.

Source Files

  • Input: **/requirements.txt
  • Output: the install stamp out/processor.mass_generator.pip/<dir>.stamp

Configuration

[processor.mass_generator.pip]
command = "pip"                        # The pip command to run
args = []                              # Additional arguments to pass to pip
dep_inputs = []                        # Additional files that trigger rebuilds when changed
KeyTypeDefaultDescription
commandstring"pip"The pip executable to run
argsstring[][]Extra arguments passed to pip
dep_inputsstring[][]Extra files whose changes trigger rebuilds

Batch support

Runs once per requirements.txt when its install stamp product is dirty.

Clean behavior

This processor is a Mass Generator — rsconstruct clean outputs removes each planned install stamp (product.outputs) and sweeps any parent directories that become empty. See Clean behavior and rsconstruct clean.