Permalink
Browse files

Fix platform detection for intel platform where get_platform() return…

…s a string ending in x86_64, for instance 'macosx-10.8-x86_64'.
  • Loading branch information...
lxbarth committed Sep 28, 2013
1 parent 24df94c commit 72accd264437e00b733bc3e3cd31827cfbb14f3b
Showing with 2 additions and 0 deletions.
  1. +2 −0 numpy/distutils/system_info.py
@@ -1386,6 +1386,7 @@ def calc_info(self):
args = []
link_args = []
if get_platform()[-4:] == 'i386' or 'intel' in get_platform() or \
+ 'x86_64' in get_platform() or \
'i386' in platform.platform():
intel = 1
else:
@@ -1482,6 +1483,7 @@ def calc_info(self):
args = []
link_args = []
if get_platform()[-4:] == 'i386' or 'intel' in get_platform() or \
+ 'x86_64' in get_platform() or \
'i386' in platform.platform():
intel = 1
else:

0 comments on commit 72accd2

Please sign in to comment.