Skip to content
Snippets Groups Projects
Unverified Commit 1581974c authored by coolreader18's avatar coolreader18
Browse files

Switch rustpython to toml recipe

parent 2a83ae3a
No related branches found
No related tags found
1 merge request!286Switch rustpython to toml recipe
GIT=https://github.com/RustPython/RustPython
BRANCH=redox-release
CARGOFLAGS=--no-default-features
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython/
function recipe_stage() {
dest="$(realpath "$1")"
mkdir -pv "$dest/lib/"
cp -r Lib "$dest/lib/rustpython"
}
[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)
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
export ZLIB_STATIC=1
COOKBOOK_CARGO_FLAGS+=(--features ssl)
cookbook_cargo
mkdir -p "${COOKBOOK_STAGE}/lib"
rsync -aE \
--exclude 'test/' \
--exclude '__pycache__/' \
--exclude '*.pyc' \
--exclude '/README.md' \
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/lib/rustpython"
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment