From 4f1edd4c3528492d1762640349b2db3c9354bed9 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Tue, 3 Jun 2014 08:57:31 -0700 Subject: [PATCH] fix Python py verbose mode 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/ --- src/python/pants/backend/python/commands/py.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/pants/backend/python/commands/py.py b/src/python/pants/backend/python/commands/py.py index 67ee26ff512..13f5bd7c510 100644 --- a/src/python/pants/backend/python/commands/py.py +++ b/src/python/pants/backend/python/commands/py.py @@ -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)