Fixup PythonChroot to ignore synthetic targets.

Review Request #2523 - Created July 23, 2015 and submitted

Information
John Sirois
pants
jsirois/issues/1858
1858, 1862
78766ed...
Reviewers
pants-reviews
benjyw, gmalmquist, kwlzn, zundel
Since PythonChroot orchestrates all its codegen locally, any codegen
done upstream is not relevant.

Tests were added for both thrift and antlr codegen and each necessitated
some small refactors of the respective python builders.

 src/python/pants/backend/python/antlr_builder.py             |   7 +-
 src/python/pants/backend/python/python_chroot.py             |  10 +++
 src/python/pants/backend/python/tasks/BUILD                  |   1 +
 src/python/pants/backend/python/tasks/python_task.py         |  11 ++-
 src/python/pants/backend/python/tasks/setup_py.py            |   1 +
 src/python/pants/backend/python/thrift_builder.py            |   2 +-
 src/python/pants/ivy/bootstrapper.py                         |   4 +-
 tests/python/pants_test/backend/python/BUILD                 |  13 ++++
 tests/python/pants_test/backend/python/test_python_chroot.py | 212 ++++++++++++++++++++++++++++++++++++++++++++++++--
 9 files changed, 249 insertions(+), 12 deletions(-)
Used against https://github.com/wyattanderson/pantstest to verify
that issue is fixed.

CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/72418529
Benjy Weinberger
John Sirois
Benjy Weinberger
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...