Big script
This commit is contained in:
32
toolchain/scripts/170-markupsafe.sh
Executable file
32
toolchain/scripts/170-markupsafe.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/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 ==="
|
||||
Reference in New Issue
Block a user