# HG changeset patch # User Adam Simpkins # Date 2017-06-28 17:50:37 # Node ID 176030f695cade8520c29d3a1df339ddf00d984b # Parent cc9501fa55749e5c391c04a615504dc27daf2974 setup: fix runcmd() usage on darwin Fix one invocation of runcmd() that was missed in the recent change to make runcmd() also return the process exit status. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -814,7 +814,7 @@ if os.name == 'nt': setupversion = version.split('+', 1)[0] if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'): - version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[0].splitlines() + version = runcmd(['/usr/bin/xcodebuild', '-version'], {})[1].splitlines() if version: version = version[0] if sys.version_info[0] == 3: