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. .gitignore
  2. .travis.yml
  3. AUTHORS
  4. DEPS
  5. LICENSE
  6. OWNERS
  7. PRESUBMIT.py
  8. README.md
  9. buildbot/
  10. codereview.settings
  11. data/
  12. gyp
  13. gyp.bat
  14. gyp_main.py
  15. gyptest.py
  16. pylib/
  17. samples/
  18. setup.py
  19. test/
  20. tools/
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.