Fixup pants sys.excepthook for pex context.

Review Request #1734 - Created Feb. 8, 2015 and submitted

Information
John Sirois
pants
jsirois/pants/pex_honors_excepthook
1026, 1056
1733
adc5794...
Reviewers
pants-reviews
jinfeng, wickman, zundel

This change fixes our excepthook to work when called (it's not currently
called in pex context, but that will be fixed when we upgrade to pex
0.8.6).

Previously all symbols used by the custom excepthook would turn up as
None when executed in a pex context. This change captures references
to all these symbols before the custom excepthook is installed ensuring
the code runs properly in pex context.

3rdparty/python/requirements.txt | 2 +-
src/python/pants/bin/pants_exe.py | 73 +++++++++++++++++++++++++++++---------------------
2 files changed, 43 insertions(+), 32 deletions(-)

All local testing with a custom pex sdist using https://rbcommons.com/s/twitter/r/1733/.

CI went green here: https://travis-ci.org/pantsbuild/pants/builds/49914353
Eric Ayers
Andy Reitz
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...