Skip to content

Commit 9c9b273

Browse files
set python upper bound to 3.13 (commaai#34286)
* try * test * ... * wow * y * docker * <
1 parent 383893d commit 9c9b273

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

Dockerfile.openpilot_base

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ENV PYTHONUNBUFFERED=1
44

55
ENV DEBIAN_FRONTEND=noninteractive
66
RUN apt-get update && \
7-
apt-get install -y --no-install-recommends sudo tzdata locales ssh pulseaudio xvfb x11-xserver-utils gnome-screenshot && \
7+
apt-get install -y --no-install-recommends sudo tzdata locales ssh pulseaudio xvfb x11-xserver-utils gnome-screenshot python3-tk python3-dev && \
88
rm -rf /var/lib/apt/lists/*
99

1010
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openpilot"
3-
requires-python = ">= 3.11, <= 3.12"
3+
requires-python = ">= 3.11, < 3.13"
44
license = {text = "MIT License"}
55
version = "0.1.0"
66
description = "an open source driver assistance system"

tools/op.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function op_check_python() {
155155
LB=$(echo $REQUIRED_PYTHON_VERSION | tr -d -c '[0-9,]' | cut -d ',' -f1)
156156
UB=$(echo $REQUIRED_PYTHON_VERSION | tr -d -c '[0-9,]' | cut -d ',' -f2)
157157
VERSION=$(echo $INSTALLED_PYTHON_VERSION | grep -o '[0-9]\+\.[0-9]\+' | tr -d -c '[0-9]')
158-
if [[ $VERSION -ge LB && $VERSION -le UB ]]; then
158+
if [[ $VERSION -ge LB && $VERSION -lt UB ]]; then
159159
echo -e " ↳ [${GREEN}${NC}] $INSTALLED_PYTHON_VERSION detected."
160160
else
161161
echo -e " ↳ [${RED}${NC}] You need a python version satisfying $(echo $REQUIRED_PYTHON_VERSION | cut -d '=' -f2-) to continue!"

uv.lock

+18-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)