From 72accd264437e00b733bc3e3cd31827cfbb14f3b Mon Sep 17 00:00:00 2001 From: Alex Barth Date: Sat, 28 Sep 2013 09:36:01 -0400 Subject: [PATCH] Fix platform detection for intel platform where get_platform() returns a string ending in x86_64, for instance 'macosx-10.8-x86_64'. --- numpy/distutils/system_info.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index d9196ea5c52..3c281465db1 100644 --- a/numpy/distutils/system_info.py +++ b/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: