Principle:Ray project Ray Python Wheel Building
| Knowledge Sources | |
|---|---|
| Domains | Build_Systems, Packaging |
| Last Updated | 2026-02-13 17:00 GMT |
Overview
A cross-platform build process that compiles native extensions and packages Python source code into distributable wheel files.
Description
Python Wheel Building produces .whl files — the standard binary distribution format for Python packages. For Ray, this involves building native C++ extensions via Bazel, compiling Cython modules, building dashboard static assets via npm, and packaging everything into platform-specific wheels for multiple Python versions (3.10, 3.11, 3.12, 3.13).
Usage
Execute as part of the release pipeline to produce distributable artifacts for PyPI.
Theoretical Basis
The wheel format (PEP 427) packages pre-compiled binaries and Python source into a single archive, eliminating the need for compilation at install time. Platform tags (e.g., manylinux2014_x86_64) ensure binary compatibility.