Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Implementation:Ray project Ray Compile Pip Dependencies

From Leeroopedia
Knowledge Sources
Domains Build_Systems, Dependency_Management
Last Updated 2026-02-13 17:00 GMT

Overview

External tool documentation for the compile_pip_dependencies() bash function that produces the Ray project's Python dependency lockfile.

Description

The compile_pip_dependencies() function in ci/ci.sh gathers ~13 requirements files, installs numpy and torch for context, runs pip-compile (from pip-tools v7.4.1) to resolve all transitive dependencies, and post-processes the result to remove local installs and CPU-only torch suffixes. The output is python/requirements_compiled.txt. The function skips on aarch64 architecture.

Usage

Run as part of the CI pipeline. Not typically invoked directly by developers.

Code Reference

Source Location

Signature

compile_pip_dependencies()

Import

source ci/ci.sh

I/O Contract

Inputs

Name Type Required Description
requirements files .txt files Yes ~13 requirements files from python/requirements.txt, python/requirements/ml/*.txt, etc.
numpy, torch pip packages Yes Pre-installed for resolution context

Outputs

Name Type Description
requirements_compiled.txt File Fully-pinned lockfile at python/requirements_compiled.txt

Usage Examples

CI Invocation

# From CI pipeline
source ci/ci.sh
compile_pip_dependencies

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment