Browse Source

setup: Make setup.py also work on py3k on OS X

Hannu Valtonen 10 years ago
parent
commit
823cbf6b13
1 changed files with 1 additions and 0 deletions
  1. 1 0
      setup.py

+ 1 - 0
setup.py

@@ -44,6 +44,7 @@ if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
         stderr=subprocess.PIPE, env={})
     out, err = p.communicate()
     for l in out.splitlines():
+        l = l.decode("utf8")
         # Also parse only first digit, because 3.2.1 can't be parsed nicely
         if l.startswith('Xcode') and int(l.split()[1].split('.')[0]) >= 4:
             os.environ['ARCHFLAGS'] = ''