Skip to content

Commit

Permalink
setup: Make setup.py also work on py3k on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Ormod committed Jun 1, 2014
1 parent 3d2e49a commit 823cbf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def has_ext_modules(self):
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'] = ''
Expand Down

0 comments on commit 823cbf6

Please sign in to comment.