Big script
This commit is contained in:
28
toolchain/scripts/152-setuptools.sh
Executable file
28
toolchain/scripts/152-setuptools.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.57: Setuptools
|
||||
# ============================================================================
|
||||
# Purpose: Build setuptools, a build system for Python packages.
|
||||
# Essential for building and installing Python packages.
|
||||
# Inputs: /sources/setuptools-78.1.0.tar.gz
|
||||
# Outputs: Python module installed to /usr/lib/python3.13/
|
||||
# Assumes: Running inside chroot, Python, wheel, and flit-core already built
|
||||
# Ref: LFS 13.0 §8.57
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="setuptools"
|
||||
VERSION="78.1.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 ==="
|
||||
Reference in New Issue
Block a user