Commit ccf1bbb
fix: install python3.12 from python-build-standalone instead of deadsnakes PPA
The previous block used `add-apt-repository -y ppa:deadsnakes/ppa`, which
relies on launchpadlib reaching api.launchpad.net. That endpoint is
blocked or unreachable on at least some Brev networks (verified failing
on Crusoe), causing the call to silently time out. With no `set -e` in
preBuild, the build then continued without python3.12, deleted the
working pip3.10 (`rm -rf /usr/bin/pip*`), and left subsequent steps
("pip install -r requirements.txt") with no pip on PATH.
Switching to python-build-standalone (tarball served from github.com,
which is reliably reachable) makes python3.12 installation deterministic
and offline-from-launchpad-safe. Also removes `python3.12-venv` from
apt.txt since the tarball ships venv built in.
deepagents (and several other deps in requirements.txt) require
Python >= 3.11, so falling back to the base image's python3.10 is not
viable.1 parent b98e883 commit ccf1bbb
2 files changed
Lines changed: 24 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
| |||
0 commit comments