Open
Description
We currently don't require Python be present on the host system (unless you want to test the python bindings or certain apps). But as a practical matter, every system you can build Halide on is going to have Python 3.x available; by requiring it, we could allow simple build-helper tools (e.g. binary2cpp, build_halide_h) to be written in Python instead of C++, which might be desirable:
- simple text-processing code is often simpler to do in Python than C++
- Managing host-vs-target build targets in CMake can be painful (see When crosscompiling, build host tools externally. #5170); using Python avoids those issues.