Skip to content

Commit 70f21cf

Browse files
committed
Add script for running rustpython in redoxer with Lib
1 parent 2576321 commit 70f21cf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

scripts/redox/run-redoxer.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
set -eo pipefail
4+
5+
cd "$(dirname "$0")"
6+
cd ../..
7+
8+
DIR=$(mktemp -d)
9+
10+
trap 'cd / && rm -rf "$DIR"' EXIT SIGINT
11+
12+
BUILDTIME_RUSTPYTHONPATH=/root/rustpython-lib redoxer build --release
13+
14+
cp target/x86_64-unknown-redox/release/rustpython -t "$DIR"
15+
ln -s "$PWD"/Lib "$DIR"/rustpython-lib
16+
17+
redoxer exec -f "$DIR" -- ./rustpython "$@"

0 commit comments

Comments
 (0)