Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit ba50ca3

Browse files
committed
pin python inside devcontainer
When pinned outside via .python-version it will fail as soon as your system python does not match .python-version, which forces you to delete it or to install another python binary which isn't optimal. This pins python to 3.12 to match the devcontainer installed one.
1 parent fa0a3b5 commit ba50ca3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.devfile/Containerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,8 @@ RUN dnf -y install make git python3.12 libusbx python3-pyusb golang podman && dn
1717

1818
USER 10001
1919

20+
# Pin python to the 3.12 installed version
21+
RUN uv python pin 3.12
22+
2023
# This will make sure that we always run python from our venv instead
2124
RUN echo "alias python='uv run python'" >> /home/user/.bashrc

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)