瀏覽代碼

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

Hannu Valtonen 11 年之前
父節點
當前提交
823cbf6b13
共有 1 個文件被更改,包括 1 次插入0 次删除
  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'] = ''