File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 125125from distutils .dist import Distribution
126126import distutils .sysconfig
127127from distutils import log
128+ from distutils .util import get_platform
128129
129130from numpy .distutils .exec_command import \
130131 find_executable , exec_command , get_pythonexe
@@ -1275,7 +1276,6 @@ def get_atlas_version(**config):
12751276 result = _cached_atlas_version [key ] = atlas_version , info
12761277 return result
12771278
1278- from distutils .util import get_platform
12791279
12801280class lapack_opt_info (system_info ):
12811281
@@ -1286,7 +1286,8 @@ def calc_info(self):
12861286 if sys .platform == 'darwin' and not os .environ .get ('ATLAS' ,None ):
12871287 args = []
12881288 link_args = []
1289- if get_platform ()[- 4 :] == 'i386' :
1289+ if get_platform ()[- 4 :] == 'i386' or 'intel' in get_platform () or \
1290+ 'i386' in platform .platform ():
12901291 intel = 1
12911292 else :
12921293 intel = 0
@@ -1373,7 +1374,8 @@ def calc_info(self):
13731374 if sys .platform == 'darwin' and not os .environ .get ('ATLAS' ,None ):
13741375 args = []
13751376 link_args = []
1376- if get_platform ()[- 4 :] == 'i386' :
1377+ if get_platform ()[- 4 :] == 'i386' or 'intel' in get_platform () or \
1378+ 'i386' in platform .platform ():
13771379 intel = 1
13781380 else :
13791381 intel = 0
You can’t perform that action at this time.
0 commit comments