[SciPy-dev] building SciPy for CentOS 5

Joseph VanAndel vanandel@ucar....
Tue Mar 11 10:02:50 CDT 2008


I rebuilt scipy, using g95 (thanks David!).

Now, the scipy test doesn't crash, but has two failures.

Any ideas on why these Orthogonal Distance Regression (ODRPACK) tests fail?

======================================================================
FAIL: test_explicit (scipy.tests.test_odr.test_odr)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/net/opt_lnx/local_el5_64/lib/python2.5/site-packages/scipy/odr/tests/test_odr.py", 
line 50, in test_explicit
     -8.7849712165253724e-02]),
   File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 215, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 100.0%)
  x: array([  1.26462971e+03,  -5.42545890e+01,  -8.64250389e-02])
  y: array([  1.26465481e+03,  -5.40184100e+01,  -8.78497122e-02])

======================================================================
FAIL: test_multi (scipy.tests.test_odr.test_odr)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/net/opt_lnx/local_el5_64/lib/python2.5/site-packages/scipy/odr/tests/test_odr.py", 
line 191, in test_multi
     0.5101147161764654,  0.5173902330489161]),
   File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 230, in assert_array_almost_equal
     header='Arrays are not almost equal')
   File "/opt/local/lib/python2.5/site-packages/numpy/testing/utils.py", 
line 215, in assert_array_compare
     assert cond, msg
AssertionError:
Arrays are not almost equal

(mismatch 100.0%)
  x: array([ 4.31272063,  2.44289312,  7.76215871,  0.55995622, 
0.46423343])
  y: array([ 4.37998803,  2.43330576,  8.00288459,  0.51011472, 
0.51739023])

----------------------------------------------------------------------
Ran 1716 tests in 3.270s

FAILED (failures=2)


David Cournapeau wrote:
> Joseph VanAndel wrote:
>> I built ATLAS from source (using the ashigabou FC 7 SRPMS), using 
>> gfortran 4.1.2
>>
>>
> 
> If I remember well, I forced using gfortran for FC 7.
> 
>> Is the ashigabou SRPM supposed to provide 'cblas'?
> Not really, because it is not needed. The problem is that ATLAS is 
> basically impossible to build in a reproducible way, so I do not provide 
> binary rpm. The idea was that you install RPM for scipy, and then build 
> ATLAS from the SRPM on your machine, which can be used as a drop-in by 
> scipy (ATLAS is picked up instead of BLAS/LAPACK at runtime).
> 
>> Should I use http://math-atlas.sourceforge.net instead?
> It is your choice, but using the rpms is way easier. I have not tested 
> on CENTOS, what is the difference between FC and CENTOS ? I built those 
> rpms, but I do not use those distributions, so I do not necessarily know 
> how to do thing the right way.
>> How do I specify which fortran compiler is used to build scipy?
> This will force using gfortran:
> 
> python setup.py build --fcompiler=gnu95
> 
> But this is taken care of by the scipy RPMS on ashigabou....
>> I've attached the scipy log file.
> The log is incomplete: you should give us a complete log (that is, with 
> the build directory deleted first), because otherwise, most info are not 
> there.
> 
> cheers,
> 
> David
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev



More information about the Scipy-dev mailing list