Commit 0576746
authored
Use
So that any invalid global pip config set by earlier buildpacks
(either via `PIP_*` env vars or global pip config files in the
HOME directory) don't affect/break the bootstrapping of the
package managers.
(Such config is still loaded during the later `pip install` used to
install the app's own dependencies; this change only affects the
internal buildpack bootstrapping stage.)
This will help resolve issues seen via Honeycomb such as the
bootstrapping step attempting to use custom package index URLs
configured via third-party buildpacks like:
https://github.com/meetalbert/albert-public-codeartifact-buildpack
(which succeeds eventually, but only after delays from timeouts/retries)
See:
- https://pip.pypa.io/en/stable/cli/pip/#cmdoption-isolated
- https://pip.pypa.io/en/stable/topics/configuration/
GUS-W-19770470.pip install --isolated when bootstrapping pip/Pipenv/Poetry (#1915)1 parent 136c3a1 commit 0576746
4 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
0 commit comments