From 830971c10855da8d284ddc36fbbd07704b492293 Mon Sep 17 00:00:00 2001 From: Olaf Date: Fri, 6 Nov 2026 14:51:54 +0100 Subject: [PATCH] python 3.13 --- modules/darwin/README.md | 7 +++++++ modules/darwin/packages.nix | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/modules/darwin/README.md b/modules/darwin/README.md index eff8fb8..2b78804 100644 --- a/modules/darwin/README.md +++ b/modules/darwin/README.md @@ -11,6 +11,13 @@ ├── packages.nix # List of packages to install for MacOS ``` +## Python + +`python3.13` is available alongside the default Python environment, without +changing `python` or `python3` or their configured packages. When the default +Python already is 3.13, its existing command is used instead of an extra launcher. +Use `python3.13 -m venv .venv` to create a Python 3.13 virtual environment. + ## Dock activation Dock setup runs only when `olaf` is the active console user. Each `dockutil` diff --git a/modules/darwin/packages.nix b/modules/darwin/packages.nix index 9259724..089527f 100644 --- a/modules/darwin/packages.nix +++ b/modules/darwin/packages.nix @@ -211,3 +211,8 @@ with pkgs; dockutil ] +++ lib.optionals (lib.versions.majorMinor python3.version != "3.13") [ + (writeShellScriptBin "python3.13" '' + exec ${python313}/bin/python3.13 "$@" + '') +]