aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-10-03 19:50:12 +0100
committerGravatar Chris Lovering <[email protected]>2024-10-03 22:06:39 +0100
commitf726695b1a1d99b5c61ea09bd3a364103a08d7bf (patch)
treee413a3b771da56fbb6516d02920c8061612c3d03 /scripts
parentCorrect spelling in test cases (diff)
Update all references to /lang to /snekbin
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_python.sh8
-rw-r--r--scripts/install_eval_deps.sh2
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/build_python.sh b/scripts/build_python.sh
index 1e6d423..77f50ab 100755
--- a/scripts/build_python.sh
+++ b/scripts/build_python.sh
@@ -4,14 +4,14 @@ shopt -s inherit_errexit
py_version="${1}"
-# Install Python interpreter under e.g. /lang/python/3.11/ (no patch version).
+# Install Python interpreter under e.g. /snekbin/python/3.11/ (no patch version).
"${PYENV_ROOT}/plugins/python-build/bin/python-build" \
"${py_version}" \
- "/lang/python/${py_version%[-.]*}"
-"/lang/python/${py_version%[-.]*}/bin/python" -m pip install -U pip
+ "/snekbin/python/${py_version%[-.]*}"
+"/snekbin/python/${py_version%[-.]*}/bin/python" -m pip install -U pip
# Clean up some unnecessary files to reduce image size bloat.
-find /lang/python/ -depth \
+find /snekbin/python/ -depth \
\( \
\( -type d -a \( \
-name test -o -name tests -o -name idle_test \
diff --git a/scripts/install_eval_deps.sh b/scripts/install_eval_deps.sh
index 8fa5316..b57a654 100644
--- a/scripts/install_eval_deps.sh
+++ b/scripts/install_eval_deps.sh
@@ -1,5 +1,5 @@
set -euo pipefail
export PYTHONUSERBASE=/snekbox/user_base
-find /lang/python -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0I{} bash -c \
+find /snekbin/python -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0I{} bash -c \
'{}/bin/python -m pip install --user -U -r requirements/eval-deps.pip' \;