The ci-fairy image should allow pip without a venv
The ci-fairy is the most basic image we provide but it does provide pip. During our install process (see cbuild
) we remove EXTERNALLY-MANAGED
before installing our packages (including ci-fairy
itself) but then we restore that again so the final image is still externally managed.
Arguably for the ci-fairy image we should remove this file altogether - the uses for this image is usually because it's small and installing a single package (e.g. black, ruff, pre-commit) is convenient. But they require venvs now which makes the lot a bit more complicated.
This isn't as trivial as I hoped though, FDO_DISTRIBUTION_EXEC
is called before we restore the files so we need some command to signal cbuild
that we don't want those restored.