Mercurial > hg-stable
changeset 16209:5536770b3c88 stable
setup.py: don't call splitlines twice on the output of xcodebuild (issue3277)
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 02 Mar 2012 10:42:12 -0800 |
parents | 374e08439ea6 |
children | 726ce5d794b2 8412d5a02e6e |
files | setup.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Fri Mar 02 09:54:45 2012 +0100 +++ b/setup.py Fri Mar 02 10:42:12 2012 -0800 @@ -454,7 +454,7 @@ # distutils.sysconfig version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() if version: - version = version.splitlines()[0] + version = version[0] xcode4 = (version.startswith('Xcode') and StrictVersion(version.split()[1]) >= StrictVersion('4.0')) else: