[Numpy-discussion] Building numarray with atlas on FC4

Christopher Barker Chris.Barker at noaa.gov
Tue Dec 27 18:02:06 CST 2005

Hi all,

I just built numarray with atlas on Fedora core 4 Linux. I used the copy 
of atlas in extras (yum install atlas-sse2). To get it to build, I 
edited cfg_packages.py this way:

     elif os.path.exists('/usr/local/lib/atlas'):
         # uses atlas, installed in /usr/local/lib	
         lapack_dirs = ['/usr/local/lib/atlas']
         lapack_include_dirs += ["/usr/local/include/atlas"]
         lapack_libs = ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c', 'm']
     elif os.path.exists('/usr/lib/sse2/'):
         # uses atlas, installed in /usr/lib/sse2 ( Fedora Core4 
extras )	
         lapack_dirs = ['/usr/lib/sse2']
         lapack_include_dirs += ["/usr/include/atlas"]
         lapack_libs = ['lapack_atlas','lapack', 'blas']

Did I do that right? would you like to add that stanza to the distribution?

I do think it's a good idea to check for the existence of the atlas dir 
before assuming that it's there.

Maybe an exception could be raised if nothing is found?

I did find it odd that I couldn't find instructions for how to do this. 
did I miss something?


Christopher Barker, Ph.D.
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov

More information about the Numpy-discussion mailing list