Mercurial > hg > mercurial-crew
comparison setup.py @ 17926:65a46635fb31
setup: print subprocess stderr if there is any
I just spent 1.5 days trying to debug a failing buildbot because
setup.py was silently dropping the errors that were being printed
by in-place hg.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Tue, 13 Nov 2012 09:55:26 -0800 |
parents | 93d97a212559 |
children | 3f59cb1ccc73 |
comparison
equal
deleted
inserted
replaced
17925:2631b3576a33 | 17926:65a46635fb31 |
---|---|
149 # a missing __init__.py in mercurial/locale, we also ignore that. | 149 # a missing __init__.py in mercurial/locale, we also ignore that. |
150 err = [e for e in err.splitlines() | 150 err = [e for e in err.splitlines() |
151 if not e.startswith(b('Not trusting file')) \ | 151 if not e.startswith(b('Not trusting file')) \ |
152 and not e.startswith(b('warning: Not importing'))] | 152 and not e.startswith(b('warning: Not importing'))] |
153 if err: | 153 if err: |
154 print >> sys.stderr, "stderr from '%s':" % (' '.join(cmd)) | |
155 print >> sys.stderr, '\n'.join([' ' + e for e in err]) | |
154 return '' | 156 return '' |
155 return out | 157 return out |
156 | 158 |
157 version = '' | 159 version = '' |
158 | 160 |