gyp: default to python3 if available

Python2 was sunsetted in 2020. Google3 gyp fork already defaults to
python3, this patch brings it closer to upstream.

Bug: 227327945
Change-Id: Ia7f5c856355fa4d012dfc5b03ec0bc3f605ea407
Reviewed-on: https://chromium-review.googlesource.com/c/external/gyp/+/3562924
Reviewed-by: Mark Mentovai <mark@chromium.org>
2 files changed
tree: c47c6161293000f62a58b62c2aa07f52571b5bdd
  1. buildbot/
  2. data/
  3. pylib/
  4. samples/
  5. test/
  6. tools/
  7. .gitignore
  8. AUTHORS
  9. codereview.settings
  10. DEPS
  11. gyp
  12. gyp.bat
  13. gyp_main.py
  14. gyptest.py
  15. LICENSE
  16. OWNERS
  17. PRESUBMIT.py
  18. README.md
  19. setup.py
README.md

GYP can Generate Your Projects.

Documents are available at gyp.gsrc.io, or you can check out md-pages branch to read those documents offline.