diff options
| author | 2023-08-29 19:35:53 +0100 | |
|---|---|---|
| committer | 2023-08-29 19:35:53 +0100 | |
| commit | f85116ab91229d3f45a8292978ffd2af7821c70e (patch) | |
| tree | ff08fbd7ee351092948eca109b320d99f05338a1 /deployment.yaml | |
| parent | Merge pull request #183 from python-discord/enforce-filesize-limits (diff) | |
| parent | Install eval dependencies with --user & ensure user base var is set (diff) | |
Merge pull request #181 from python-discord/feat/158/multi-version
Install Multiple Python Versions in the Image
Diffstat (limited to 'deployment.yaml')
| -rw-r--r-- | deployment.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deployment.yaml b/deployment.yaml index b0856f3..a6e7a31 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -30,8 +30,9 @@ spec: - "/bin/sh" - "-c" - >- - PYTHONUSERBASE=/snekbox/user_base - pip install --user --upgrade + find /lang/python -mindepth 1 -maxdepth 1 -type d -exec + sh -c 'PYTHONUSERBASE=/snekbox/user_base && + {}/bin/python -m pip install --user -U anyio[trio]~=3.6 arrow~=1.2 attrs~=22.2 @@ -55,6 +56,7 @@ spec: typing-extensions~=4.4 tzdata~=2022.7 yarl~=1.8 + ' \; volumes: - name: snekbox-user-base-volume hostPath: |