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, runs pip install -r on each, and creates a stamp file on success. The stamp file tracks the install state so dependencies are only reinstalled when requirements.txt changes.

Source Files

  • Input: **/requirements.txt
  • Output: out/pip/{flat_name}.stamp

Configuration

[processor.pip]
pip = "pip"                            # The pip command to run
args = []                              # Additional arguments to pass to pip
extra_inputs = []                      # Additional files that trigger rebuilds when changed
cache_output_dir = true                # Cache the stamp directory for fast restore after clean
KeyTypeDefaultDescription
pipstring"pip"The pip executable to run
argsstring[][]Extra arguments passed to pip
extra_inputsstring[][]Extra files whose changes trigger rebuilds
cache_output_dirbooleantrueCache the out/pip/ directory so rsconstruct clean && rsconstruct build restores from cache