After upgrading to MacOS Monterey 12.3 our Skia builds stopped working due to the deprecation of python 2 on MacOS.
We're building with the M101 branch.
I managed to get almost everything to build again setting the script-executable to python3 when running `gn gen`:
gn gen out/android/arm --script-executable=python3 --args='....
All our iOS builds are now working including building for Mac M1, but Android still fails complaining about python not being found when trying to link:
[1/104] link libwebp_sse41.a
FAILED: libwebp_sse41.a
python "<...>/externals/skia/gn/rm.py" "libwebp_sse41.a" && <...>/Android/sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/darwin-x86_64/bin/llvm-ar rcs libwebp_sse41.a @libwebp_sse41.a.rsp
/bin/sh: python: command not found
Any ideas on how to solve this? Thanks in advance :)