[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 05:53:58 CST 2012
#2039: Numpy wrongly assumes that any non-i386 OS X (Darwin) system is PowerPC
-------------------------------------------------+--------------------------
Reporter: jdemeyer | Owner: cdavid
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: numpy.distutils | Version: 1.5.1
Keywords: altivec sse3 darwin OSX i386 x86_64 |
-------------------------------------------------+--------------------------
Apparently Numpy forgot about the existence of "x86_64" systems:
{{{
Python 2.7.2 (default, Feb 3 2012, 15:29:15)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from distutils.util import get_platform
>>> get_platform()
'macosx-10.6-x86_64'
}}}
The bug is in `src/numpy/distutils/system_info.py`:
{{{
if sys.platform=='darwin' and not os.environ.get('ATLAS',None):
args = []
link_args = []
if get_platform()[-4:] == 'i386':
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'])
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2039>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list