diff options
author | 2021-01-12 10:31:41 -0800 | |
---|---|---|
committer | 2021-01-12 11:18:50 -0800 | |
commit | e73e989198b097989fc069f13ca166fb8eedbfb8 (patch) | |
tree | ac2475ee3b73aa0afbc735097f8295a4b6f27a8d /deployment.yaml | |
parent | Docker: simplify pipenv install command (diff) |
Fix caching of exposed packages
The problem with --ignore-installed is that it also ignores packages in
the target site, therefore re-installing all packages and making caching
futile.
Install snekbox's dependencies to the default user site. During
installation of the exposed packages, switch the user site to a custom
one to ensure pip will not skip packages due to seeing them as already
installed as one of snekbox's dependencies.
If pip made the --root option ignore packages outside the root, then
using --root would be the best solution. There is a 5+ year old issue
open about that.
Diffstat (limited to 'deployment.yaml')
-rw-r--r-- | deployment.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deployment.yaml b/deployment.yaml index 988394f..0b294d2 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -30,7 +30,8 @@ spec: - "/bin/sh" - "-c" - >- - pip install --user --ignore-installed + PYTHONUSERBASE=/snekbox/user_base + pip install --user arrow~=0.17 attrs~=20.3 beautifulsoup4~=4.9 |