Since v6.10 the Linux kernel depends on Python to build, at least if you need support for the drm/msm driver (CONFIG_DRM_MSM=y).
This is used to generate headers from source xml during build, not an unreasonable scenario. I much prefer Python over C or Perl or shell scripting for this type of file and string processing.
Yet I'm unsure what the stance for the Python build dependency is among the powers that be. It may have snug in under their radar.
Should I try it with drm/i915...?