summaryrefslogtreecommitdiff
path: root/Biz/Ide/repl
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Ide/repl')
-rwxr-xr-xBiz/Ide/repl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Biz/Ide/repl b/Biz/Ide/repl
index 1d94e47..1401218 100755
--- a/Biz/Ide/repl
+++ b/Biz/Ide/repl
@@ -30,6 +30,7 @@ fi
sysdeps=$(jq --raw-output '.[].sysdeps | join(" ")' <<< $json)
exts=$(jq --raw-output '.[].namespace.ext' <<< $json | sort | uniq)
packageSet=$(jq --raw-output '.[].packageSet' <<< $json)
+ module=$(jq --raw-output '.[].mainModule' <<< $json)
BILD="(import ${BIZ_ROOT:?}/Biz/Bild.nix {})"
for lib in ${sysdeps[@]}; do
flags+=(--packages "$BILD.pkgs.${lib}")
@@ -64,8 +65,11 @@ fi
;;
Py)
langdeps="$langdeps mypy"
+ flags+=(--packages ruff)
flags+=(--packages "$BILD.bild.python.pythonWith (p: with p; [$langdeps])")
- command=${CMD:-"python -i $targets"}
+ PYTHONPATH=$BIZ_ROOT:$PYTHONPATH
+ pycommand="python -i $BIZ_ROOT/Biz/Repl.py $module ${targets[@]}"
+ command=${CMD:-"$pycommand"}
;;
*)
echo "unsupported targets: ${targets[@]}"