mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
31 lines
659 B
TOML
31 lines
659 B
TOML
[source]
|
|
git = "https://github.com/RustPython/RustPython"
|
|
# newer rev requires 'bits/libc-header-start.h' for bindgen
|
|
rev = "2025-10-13-main-51"
|
|
shallow_clone = true
|
|
patches = [
|
|
"redox.patch"
|
|
]
|
|
|
|
[build]
|
|
dependencies = [
|
|
"openssl3",
|
|
"zlib",
|
|
]
|
|
template = "custom"
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
export BUILDTIME_RUSTPYTHONPATH=/usr/lib/rustpython
|
|
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
|
|
export ZLIB_STATIC=1
|
|
cookbook_cargo --features ssl
|
|
mkdir -p "${COOKBOOK_STAGE}/usr/lib"
|
|
rsync -aE \
|
|
--exclude 'test/' \
|
|
--exclude '__pycache__/' \
|
|
--exclude '*.pyc' \
|
|
--exclude '/README.md' \
|
|
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/usr/lib/rustpython"
|
|
"""
|