Skip to content

Commit 2144695

Browse files
SckyzOclaude
andcommitted
fix(test): set pip install path in docker container
Changes: - Add HOME and PYTHONUSERBASE environment variables to docker container - Fix permission issues when pip tries to install packages as non-root user - Add .cache/ and .local-build/ to .gitignore This resolves the "Permission denied: '/.local'" error when running pip install --user inside the container with --user flag. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 00dc524 commit 2144695

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ archives/
3737
tmp/
3838
site/
3939
*.egg-info/
40+
.cache/
41+
.local-build/
4042

4143
# --- Secrets & Environment Variables ---
4244
secrets/

core/scripts/local_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ generate_build_files() {
147147
--user $(id -u):$(id -g) \
148148
-v \"$PROJECT_ROOT:/workspace:rw\" \
149149
-w /workspace \
150+
-e HOME=/workspace \
151+
-e PYTHONUSERBASE=/workspace/.local-build \
150152
python:3.11-slim \
151153
bash -c \"
152154
pip install -q --user -r requirements/base.txt && \

0 commit comments

Comments
 (0)