aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2023-08-29 18:58:44 +0100
committerGravatar Joe Banks <[email protected]>2023-08-29 18:58:44 +0100
commit70d0e1a2f9a431a4c36bdf721e8603bffb706f6f (patch)
tree38e63543343c85838e6a9af1585308dbe6c2b853
parentFix numpy install for test (diff)
Install eval dependencies with --user & ensure user base var is set
Due to the way that `find` executes -exec arguments we need to run the pip install's inside another `sh` instance so that the PYTHONUSERBASE environment variable is correctly picked up. Additionally, we need to specify `--user` so that pip respects the PYTHONUSERBASE variable at all.
-rw-r--r--deployment.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/deployment.yaml b/deployment.yaml
index ece9ef4..a6e7a31 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -31,8 +31,8 @@ spec:
- "-c"
- >-
find /lang/python -mindepth 1 -maxdepth 1 -type d -exec
- PYTHONUSERBASE=/snekbox/user_base &&
- {}/bin/python -m pip install -U
+ sh -c 'PYTHONUSERBASE=/snekbox/user_base &&
+ {}/bin/python -m pip install --user -U
anyio[trio]~=3.6
arrow~=1.2
attrs~=22.2
@@ -56,7 +56,7 @@ spec:
typing-extensions~=4.4
tzdata~=2022.7
yarl~=1.8
- \;
+ ' \;
volumes:
- name: snekbox-user-base-volume
hostPath: