Files
darkforge/toolchain/scripts/150-flit-core.sh
2026-03-20 15:09:30 +01:00

29 lines
1007 B
Bash
Executable File

#!/bin/bash
# ============================================================================
# DarkForge Linux — Phase 3, Chapter 8.54: Flit-Core
# ============================================================================
# Purpose: Build flit-core, a minimal Python build backend for PEP 517.
# Required by setuptools and other Python packages.
# Inputs: /sources/flit_core-3.11.0.tar.gz
# Outputs: Python module installed to /usr/lib/python3.13/
# Assumes: Running inside chroot, Python already built
# Ref: LFS 13.0 §8.54
# ============================================================================
set -euo pipefail
source /sources/toolchain-scripts/100-chroot-env.sh
PACKAGE="flit_core"
VERSION="3.11.0"
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 ==="