33 lines
1.1 KiB
Bash
Executable File
33 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
# ============================================================================
|
|
# DarkForge Linux — Phase 3, Chapter 8: markupsafe
|
|
# ============================================================================
|
|
# Purpose: Build MarkupSafe (Python library for safe string escaping).
|
|
# Dependency for Jinja2, which is needed for various build tools.
|
|
# Inputs: /sources/markupsafe-3.0.2.tar.gz
|
|
# Outputs: Python package installed to /usr/lib/python3.x/
|
|
# Assumes: Running inside chroot, Python3 installed
|
|
# Ref: LFS 13.0 §8.76
|
|
# ============================================================================
|
|
|
|
set -euo pipefail
|
|
|
|
source /sources/toolchain-scripts/100-chroot-env.sh
|
|
|
|
PACKAGE="MarkupSafe"
|
|
VERSION="3.0.2"
|
|
PKG_LOWER="markupsafe"
|
|
|
|
echo "=== Building ${PACKAGE}-${VERSION} ==="
|
|
|
|
cd /sources
|
|
tar -xf "${PKG_LOWER}-${VERSION}.tar.gz"
|
|
cd "${PKG_LOWER}-${VERSION}"
|
|
|
|
# Use pip to install in editable mode for development
|
|
pip3 install --no-build-isolation .
|
|
|
|
cd /sources
|
|
rm -rf "${PKG_LOWER}-${VERSION}"
|
|
echo "=== ${PACKAGE}-${VERSION} complete ==="
|