redox/recipes/dev/rustpython/recipe.toml
2026-05-17 15:25:38 +07:00

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"
"""