[Numpy-discussion] doc bug in numarray 1.1

Chris Barker Chris.Barker at noaa.gov
Wed Sep 15 11:32:12 CDT 2004


Stephen Walton wrote:

>>These libraries are specific to the commercial Absoft Fortran
>>compiler.  If you change the lapack_libs assignment in addons.py to
>>
>>    lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 'g2c', 'm']
> 
> 
> And I'm a bit of an idiot.  This should be a permanent change; 

great. Do we need to submit a bug report, or is someone going to do this?

By the way, if it is found that different library lists are needed for 
different systems, it would be nice to have a small selection of list of 
commented out options:


if BUILTIN_BLAS_LAPACK:
     sourcelist = [
         os.path.join('Packages/LinearAlgebra2/Src', 'lapack_litemodule.c'),
         os.path.join('Packages/LinearAlgebra2/Src', 'blas_lite.c'),
         os.path.join('Packages/LinearAlgebra2/Src', 'f2c_lite.c'),
         os.path.join('Packages/LinearAlgebra2/Src', 'zlapack_lite.c'),
         os.path.join('Packages/LinearAlgebra2/Src', 'dlapack_lite.c')
         ]
     lapack_libs = []
else:
     sourcelist = [
         os.path.join('Packages/LinearAlgebra2/Src', 'lapack_litemodule.c'),
         ]

     # Set to list off libraries to link against.
     # (only the basenames, e.g. 'lapack')
     ## for atlas on linux:
     lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 'm']
     ## for absoft on linux:
     #lapack_libs = ['lapack', 'f77blas', 'cblas', 'atlas', 
'm','someotherlib']
     ## for whatever on whatever:
     #lapack_libs = ['a','different','list']


Also:
Shouldn't this be inside the "if" above ?

# Set to list directories to be searched for BLAS and LAPACK libraries
# For absoft on Linux
##lapack_dirs = ['/usr/local/lib/atlas', '/opt/absoft/lib']
# For atlas on Gentoo Linux
lapack_dirs = []

Though I suppose it doesn't hurt to search non-exisitant directories.


By the way. I set the USE_LAPACK environment variable. Is there a way to 
pass it in as an option to setup.py instead? That seems a better way of 
keeping with the spirit of distutils.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
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