@jaredwolff I was going to peel off this change of yours, which looked cleanly separable, to upstream:
(file: app/sysbuild/CMakeLists.txt)
+# The same variant configure step otherwise falls back to /usr/bin/python, which
+# may not have Zephyr's Python dependencies installed. Pin it to west's Python.
+if(DEFINED WEST_PYTHON)
+ set(Python3_EXECUTABLE "${WEST_PYTHON}" CACHE FILEPATH "Python for child images" FORCE)
+ get_filename_component(WEST_PYTHON_DIR "${WEST_PYTHON}" DIRECTORY)
+ set(ENV{PATH} "${WEST_PYTHON_DIR}:$ENV{PATH}")
+endif()
what was the actual thing that broke here? In my environment, python comes from the Nordic toolchain setup (.../toolchains/fbf7391cab/usr/local/bin/python, which nrfutil sdk-manager toolchain launch --ncs-version=v3.4.0 --shell prepends to my $PATH).
Since I’m a CLI dinosaur, I don’t use the Circuit Dojo Zephyr Tools or nRF Connect for VSCode, do those do things differently such that the system python ends up first on $PATH? Or does something funny happen in the depths of Nordic cmakery that resets this to a literal /usr/bin/python3? Either way, I can’t figure out how to repro the problem which I’d want to do before proposing a fix. Even with that change commented out, I see this:
****************************************
* Running CMake for mcuboot_s1_variant *
****************************************
Loading Zephyr default modules (Zephyr base).
-- Application: /home/egnor/source/blub/dev.tmp/nordic/workspace/bootloader/mcuboot/boot/zephyr
-- CMake version: 4.2.1
-- Found Python3: /home/egnor/source/blub/dev.tmp/nordic/toolchains/fbf7391cab/usr/local/bin/python (found suitable version "3.12.4", minimum required is "3.12") found components: Interpreter
...
…which seems like it’s picking up the python from $PATH just fine??