diff --git a/dev_scripts/env.py b/dev_scripts/env.py index dc548a2..210fd72 100755 --- a/dev_scripts/env.py +++ b/dev_scripts/env.py @@ -166,6 +166,14 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* """ +# NOTE: Fedora 41 comes with Python 3.13 installed. Our Python project is not compatible +# yet with Python 3.13, because PySide6 cannot work with this Python version. To +# sidestep this, install Python 3.12 *only* in dev environments. +DOCKERFILE_BUILD_DEV_FEDORA_41_DEPS = r""" +# Install Python 3.12 since our project is not compatible yet with Python 3.13. +RUN dnf install -y python3.12 +""" + # FIXME: Install Poetry on Fedora via package manager. DOCKERFILE_BUILD_DEV_FEDORA_DEPS = r""" RUN dnf install -y git rpm-build podman python3 python3-devel python3-poetry-core \ @@ -664,6 +672,8 @@ class Env: if self.distro == "fedora": install_deps = DOCKERFILE_BUILD_DEV_FEDORA_DEPS + if self.version == "41": + install_deps += DOCKERFILE_BUILD_DEV_FEDORA_41_DEPS else: # Use Qt6 in all of our Linux dev environments, and add a missing # libxcb-cursor0 dependency