From 05805e5508a2e7a5ee52a604c4d62fc392137aa1 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Tue, 14 May 2024 15:08:10 +0800 Subject: [PATCH] chore(ci): use python3.12 as build tool base (#15520) --- docker/build-tool/debian/Dockerfile | 2 +- scripts/setup/dev_setup.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/build-tool/debian/Dockerfile b/docker/build-tool/debian/Dockerfile index 6683cdbabfa7..24627403d0ee 100644 --- a/docker/build-tool/debian/Dockerfile +++ b/docker/build-tool/debian/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:bullseye +FROM python:3.12-bullseye ENV TERM=dumb ENV DEBIAN_FRONTEND=noninteractive diff --git a/scripts/setup/dev_setup.sh b/scripts/setup/dev_setup.sh index 2df005e669cd..24a2ace0f21d 100755 --- a/scripts/setup/dev_setup.sh +++ b/scripts/setup/dev_setup.sh @@ -133,6 +133,10 @@ function install_ziglang { function install_python3 { PACKAGE_MANAGER=$1 + if python3 --version; then + echo "==> python3 is already installed" + return + fi echo "==> installing python3..." case "$PACKAGE_MANAGER" in