Mostly mechanical changes for Python3 support.

Everything should still work fine in Python 2. With this change (and
the others I've just landed), Python 3 should work on at least
Linux, but I need to do more sanity-checking on Mac and Win.

The changes in this CL are all mechanical -- things like
print() instead of print, `key in dict` rather than dict.has_key(key),
and switching to use .decode('utf8') to handle the binary streams
returned from a subprocess (and a few other things).

Most of this work is derived from Ashley.Whetter@gmail.com's
original work in https://codereview.chromium.org/1454433002/.

Bug: gyp:36

Change-Id: Ie04ebcf2d82e7b8ff34c6a112215eac46af688ba
Reviewed-on: https://chromium-review.googlesource.com/c/1357805
Reviewed-by: Mark Mentovai <mark@chromium.org>
169 files changed
tree: 78848c625e7729b7690cefcbd658728251378318
  1. buildbot/
  2. data/
  3. pylib/
  4. samples/
  5. test/
  6. tools/
  7. .gitignore
  8. .travis.yml
  9. AUTHORS
  10. codereview.settings
  11. DEPS
  12. gyp
  13. gyp.bat
  14. gyp_main.py
  15. gyptest.py
  16. LICENSE
  17. OWNERS
  18. PRESUBMIT.py
  19. README.md
  20. 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.