Since commit 9c0c7846cdb63f3ed62563c4f532ad02ad0a1c98 ("support/dependencies: don't check for python on the host"), we no longer require to have Python installed on the host system. However, on a minimal Ubuntu container, without python3 available, the build of host-python3 fails with: python3 ./Tools/scripts/update_file.py ./Python/importlib_external.h ./Python/importlib_external.h.new make[2]: python3: Command not found make[2]: *** [Makefile:754: regen-importlib] Error 127 make[1]: *** [package/pkg-generic.mk:292: /output/build/host-python3-3.10.4/.stamp_built] Error 2 make: *** [Makefile:23: _all] Error 2
Fixed by https://git.buildroot.org/buildroot/commit/package/python3?id=3fed42456693a5c31c73b5a577d85ce6baa69737. Many thanks to Vincent for the patch!