diff --git a/dev_scripts/env.py b/dev_scripts/env.py index 2931965..2f8b028 100755 --- a/dev_scripts/env.py +++ b/dev_scripts/env.py @@ -156,6 +156,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 \ @@ -538,6 +546,8 @@ class Env: """Build a Linux environment and install tools for Dangerzone development.""" 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