redox/recipes/development/rustpython/recipe.toml
2023-11-05 12:58:51 +00:00

22 lines
595 B
TOML

[source]
git = "https://github.com/RustPython/RustPython"
branch = "redox-release"
[build]
dependencies = ["openssl", "zlib"]
template = "custom"
script = """
(cd "${COOKBOOK_SOURCE}" && bash scripts/redox/uncomment-cargo.sh && cargo update)
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
export ZLIB_STATIC=1
cookbook_cargo --features ssl
mkdir -p "${COOKBOOK_STAGE}/lib"
rsync -aE \
--exclude 'test/' \
--exclude '__pycache__/' \
--exclude '*.pyc' \
--exclude '/README.md' \
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/lib/rustpython"
"""