Skip to content
Snippets Groups Projects
Commit a398756a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'rustpython-toml-recipe' into 'master'

Switch rustpython to toml recipe

See merge request !286
parents 2a83ae3a 1581974c
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