#7831: numpy-1.3.0.p2 fixes for FreeBSD
------------------------------------------------------------+---------------
Reporter: pjeremy | Owner:
pjeremy
Type: defect | Status: new
Priority: major | Milestone:
sage-4.3.1
Component: freebsd | Keywords:
Work_issues: | Author:
Peter Jeremy
Upstream: None of the above - read trac for reasoning. | Reviewer:
Merged: |
------------------------------------------------------------+---------------
* !__init!__.py needs a sage-specific patch to prefer sage_fortran on
FreeBSD. Without this, numpy reports:
{{{
Running from numpy source directory.
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in /home/peter/sage/sage-4.3/local/lib
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas_r not found in
/home/peter/sage/sage-4.3/local/lib
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas_r not found in
/home/peter/sage/sage-4.3/local/lib
NOT AVAILABLE
/home/peter/sage/sage-4.3/spkg/build/numpy-1.3.0.p2/src/numpy/distutils/system_info.py:1383:
UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
FOUND:
libraries = ['blas']
library_dirs = ['/home/peter/sage/sage-4.3/local/lib']
language = f77
FOUND:
}}}
This also causes matplotlib to die with
{{{
REQUIRED DEPENDENCIES
numpy: no
* You must install numpy 1.1 or later to build
* matplotlib.
}}}
* By default, numpy references threaded atlas libraries, as well as a
custom variant on the lapack library, on FreeBSD. The reasoning behind
this is unclear - there is nothing in the numpy documentation to indicate
whether a threaded or non-threaded atlas is needed and the publicly
available SVN logs do not mention this code. A query to the numpy mailing
list elicited a response that either threaded or non-threaded atlas can be
used and suggesting that the special-casing for FreeBSD may be obsolete.
By default, atlas is built non-threaded and r-2.6.1.p23 assumes a non-
threaded atlas and fails when only the threaded libraries are installed.
Based on this, the special casing for FreeBSD was removed from numpy - it
now uses the same libraries irrespective of the host OS. This part of the
patch could potentially be integrated upstream but this has not been done
yet.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7831>
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.