Skip to content

Commit

Permalink
fix Python py verbose mode
Browse files Browse the repository at this point in the history
Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/26632712
[tdesai]PANTS_DEV=1 ./pants py --pex -v src/python/pants/bin:pants
Cleaning up...
Loading pants backends from source
Detected interpreter /usr/bin/python: CPython-2.6.7
Detected interpreter /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7: CPython-2.7.2
Detected interpreter /usr/local/bin/python2.7: CPython-2.7.5
/Users/tdesai/projects/pants src/python/pants/bin:pants
Build operating on targets: PythonBinary(BuildFileAddress(src/python/pants/bin/BUILD, pants))

Reviewed at https://rbcommons.com/s/twitter/r/445/
tejal29 authored and Tejal Desai committed Jun 3, 2014
1 parent e572007 commit 4f1edd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/pants/backend/python/commands/py.py
Original file line number Diff line number Diff line change
@@ -138,7 +138,8 @@ def execute(self):
self.error('Cannot specify both --entry_point and --ipython!')

if self.options.verbose:
print('Build operating on targets: %s' % ' '.join(self.targets))
print('Build operating on targets: %s' % ' '.join(str(target) for target in self.targets))


builder = PEXBuilder(tempfile.mkdtemp(), interpreter=self.interpreter,
pex_info=self.binary.pexinfo if self.binary else None)

0 comments on commit 4f1edd4

Please sign in to comment.