#!/bin/bash # ============================================================================ # DarkForge Linux — Phase 3, Chapter 8.55-56: Wheel # ============================================================================ # Purpose: Build wheel, the binary package format for Python. # Required for setuptools and building Python packages. # Inputs: /sources/wheel-0.45.1.tar.gz # Outputs: Python module installed to /usr/lib/python3.13/ # Assumes: Running inside chroot, Python and flit-core already built # Ref: LFS 13.0 §8.55-56 # ============================================================================ set -euo pipefail source /sources/toolchain-scripts/100-chroot-env.sh PACKAGE="wheel" VERSION="0.45.1" echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ===" pkg_extract "${PACKAGE}-${VERSION}.tar.gz" cd "${PACKAGE}-${VERSION}" python3 -m pip install --no-build-isolation --no-index . pkg_cleanup "${PACKAGE}-${VERSION}" echo "=== ${PACKAGE}-${VERSION} complete ==="