We've always used depfiles to make ninja aware of dependent .py files for build actions. However, this can sometimes lead to trybots skipping builds because "gn analyze" does not know about depfile deps ( bug 827197 ).
We should change all scripts from using depfiles to listing inputs directly. Options include:
1) Use pydeps files for them
2) Use exec_script("//build/print_python_deps.py") in actions
3) Hand-code them.
Many scripts could probably use a combination of 2+3 by having build_utils.py deps stored in a variable, then just adding the one or two extra deps onto that.
Comment 1 by agrieve@chromium.org
, May 23 2018