#12423: Numpy wrongly assumes that any non-i386 OS X system is PowerPC
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: packages | Keywords:
Work_issues: | Upstream: Reported upstream. Little or no
feedback.
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Description changed by jdemeyer:
Old description:
> 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'])
> }}}
> The above code is actually wrong is so many different ways that it should
> better be scrapped altogether. However, I'm going for a minimal fix in
> this ticket, adding a check for "x86_64".
>
> Reported upstream: [http://projects.scipy.org/numpy/ticket/2039]
>
> '''spkg''':
> [http://boxen.math.washington.edu/home/jdemeyer/spkg/numpy-1.5.1.p0.spkg]
New description:
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'])
}}}
The above code is actually wrong in so many different ways that it should
better be scrapped altogether. However, I'm going for a minimal fix in
this ticket, adding a check for "x86_64". Let's also see what upstream
says.
Reported upstream: [http://projects.scipy.org/numpy/ticket/2039]
'''spkg''':
[http://boxen.math.washington.edu/home/jdemeyer/spkg/numpy-1.5.1.p0.spkg]
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12423#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.