[SciPy-dev] scipy.sparse + umfpack + system_info

Robert Cimrman cimrman3 at ntc.zcu.cz
Thu Apr 6 04:26:07 CDT 2006


Ed Schofield wrote:
> 
> On 29/03/2006, at 4:54 PM, Robert Cimrman wrote:
> 
>> Ed Schofield wrote:
>> 
> 
> I've run some small tests and the UMFPACK wrappers seems to work
> fine. Well done, Robert!  Well done to Pearu too for his help with
> distutils.
> 
> I've added some small unit tests in linsolve/umfpack/tests/ 
> test_umfpack2.py, including two that are commented out because I
> can't figure out how to disable umfpack with the useUmfpack
> variable.  Could you please check this, Robert?

I will rename
test_umfpack.py -> try_umfpack.py
test_umfpack2.py -> test_umfpack.py

so that the tests could be run via scipy.test(). I will also check the 
useUmfpack problem. However system_info now fails to find my umfpack 
installation (revision 2308 worked for me), details are below:

  umfpack_info:
/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
UserWarning: Library error: libs=['umfpack', 'amd'] found_libs=[]
   warnings.warn("Library error: libs=%s found_libs=%s" % \
/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
UserWarning: Library error: libs=['umfpack', 'amd']
found_libs=['/home/share/software/packages/UMFPACK/UMFPACK/Lib/libumfpack.a']
   warnings.warn("Library error: libs=%s found_libs=%s" % \
/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:540:
UserWarning: Library error: libs=['umfpack', 'amd']
found_libs=['/home/share/software/packages/UMFPACK/AMD/Lib/libamd.a']
   warnings.warn("Library error: libs=%s found_libs=%s" % \
/home/share/software/usr/lib/python2.4/site-packages/numpy/distutils/system_info.py:392:
UserWarning:
     UMFPACK sparse solver 
(http://www.cise.ufl.edu/research/sparse/umfpack/)
     not found. Directories to search for the libraries can be specified
in the
     numpy/distutils/site.cfg file (section [umfpack]) or by setting
     the UMFPACK environment variable.
   warnings.warn(self.notfounderror.__doc__)
   NOT AVAILABLE

the problem is, that len(found_libs) == len(libs) does not hold in my 
case (it is in system_info._check_libs()). Pearu, could you fix this, 
please? (btw. this is exactly the reason the original (rev. 2308) 
umfpack_info looked so clumsy - I was checking one lib at a time.)

r.




More information about the Scipy-dev mailing list