diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_python.sh | 8 | ||||
-rw-r--r-- | scripts/install_eval_deps.sh | 2 |
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' \; |