fix(cookbook): redirect pip cache away from $HOME (#1219)#1231
fix(cookbook): redirect pip cache away from $HOME (#1219)#1231PrabinDevkota wants to merge 2 commits into
Conversation
|
Thanks, this is pointed at a real issue from #1219 and the intended file list makes sense, but the branch is currently stale against main. The two-dot diff still includes already-merged/unrelated files like routes/model_routes.py, src/url_safety.py, static/app.js, static/js/sessions.js, and multiple endpoint/sidebar tests. Can you rebase onto current main and push again so the two-dot diff contains only the intended files? Expected scope from the PR file list is:
Also, minor naming note: the PR changes Cookbook install runtime behavior, not only docs, so a |
Pip wheel/build caches default to ~/.cache/pip and can fill small home partitions during requirements or Cookbook dependency installs. Docker Compose and the entrypoint now use data/pip-cache and data/tmp; local Cookbook runners export the same paths; install docs show the workaround. Complements --no-cache-dir for Cookbook dependency installs (odysseus-dev#1477).
Keep docker-compose.gpu-*.yml aligned with base docker-compose.yml so standalone GPU files stay equal to base+overlay after PIP_CACHE_DIR/TMPDIR. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
Redirect pip wheel/build cache and temp dirs away from
$HOMEso Cookbook dependency installs andpip install -r requirements.txtdo not fill a small home partition (No space left on device). Complements the existing--no-cache-dirCookbook path (#1477) by also covering Docker, native install scripts, and wheel build temps viaTMPDIR.Target branch
dev, notmain. All PRs land indev;mainis curated by the maintainer at each release. If your PR is onmainby accident, click "Edit" on this PR and change the base.Linked Issue
Fixes #1219
Type of Change
Checklist
devdocker compose uporuvicorn app:app) and verified the change works end-to-end. Type-checks and unit tests are not enough.How to Test
pip install -r requirements.txtand verifyPIP_CACHE_DIR/TMPDIRpoint under./data/(or/app/data/in Docker).docker compose config(or inspect the running container env) should showPIP_CACHE_DIR=/app/data/pip-cacheandTMPDIR=/app/data/tmpby default; entrypoint creates those dirs on the data volume.Visual / UI changes — REQUIRED if you touched anything that renders
N/A — no UI/rendering changes.