[NumPy-Tickets] [NumPy] #2039: Numpy wrongly assumes that any non-i386 OS X (Darwin) system is PowerPC
NumPy Trac
numpy-tickets@scipy....
Sat Feb 4 15:23:18 CST 2012
#2039: Numpy wrongly assumes that any non-i386 OS X (Darwin) system is PowerPC
-------------------------------------------------+--------------------------
Reporter: jdemeyer | Owner: cdavid
Type: defect | Status: needs_review
Priority: normal | Milestone: 1.7.0
Component: numpy.distutils | Version: 1.6.1
Keywords: altivec sse3 darwin OSX i386 x86_64 |
-------------------------------------------------+--------------------------
Changes (by rgommers):
* milestone: Unscheduled => 1.7.0
Comment:
My Python 2.7 on 64-bit OS X 10.6 gives
{{{
>>> get_platform()
'macosx-10.6-intel'
}}}
Current code in numpy master is:
{{{
if get_platform()[-4:] == 'i386' or 'intel' in get_platform()
or \
'i386' in platform.platform():
intel = 1
else:
intel = 0
if
os.path.exists('/System/Library/Frameworks/Accelerate.framework/'):
if intel:
args.extend(['-msse3'])
else:
args.extend(['-faltivec'])
link_args.extend(['-Wl,-framework','-Wl,Accelerate'])
}}}
The output you get ('macosx-10.6-x86_64') still doesn't work with the
above (or does it, what do you get for {{{platform.platform()}}}?), so we
need to check for {{{x86_64}}} as well. Distutils is frustratingly
inconsistent for this type of check...
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2039#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list