Repository navigation
Commit e77743a
committed
Read the TensorRT pin without pip
The version step calls versions.tensorrt_version(), which imports pyyaml, so
it began with `python3 -m pip install pyyaml`. That worked on the old VM
runner. The job now runs in a container, and the image it has to use ships
python3 without pip:
/usr/bin/python3: No module named pip
Swapping to the manylinux builder image, which does have pip, is not open to
us: docker/login-action shells out to the docker CLI, and
docker-build-remote-buildkit runs `docker buildx build`, so the container
needs docker. The builder images have python and pip but no docker;
actions-runner has docker but no pip. No single image has both.
So drop the dependency instead of trying to satisfy it. versions.py wants
pyyaml only to read dev_dep_versions.yml, and that file is flat
`key: "value"`, so one sed reads the pin with nothing installed. It fails
loudly if the key ever moves, rather than passing an empty build arg.
Authored with Claude Code.1 parent 88792ab commit e77743a
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments