Commit 0dabdc0
committed
🐛 Fix Docker pip --user install error in virtualenv
Set VIRTUAL_ENV environment variable in Dockerfile to fix the
error when building Android apps. The error was:
```
Can not perform a '--user' install. User site-packages are not
visible in this virtualenv
```
The Docker container creates a virtualenv at /home/user/.venv but
was only setting PATH, not VIRTUAL_ENV. This caused buildozer's
virtualenv detection logic to incorrectly add --user flag to pip.
Also restrict Docker image publishing to upstream repository only
by adding repository_owner check to SHOULD_PUBLISH condition. This
prevents forks from attempting to publish to container registries,
which would fail due to missing credentials and GHCR's lowercase
requirement for repository names.
Fixes #19771 parent fc3c5d3 commit 0dabdc0
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
0 commit comments