[SciPy-user] How do I build scipy using standard BLAS/LAPACK

Nils Wagner nwagner at mecha.uni-stuttgart.de
Mon Nov 22 12:56:16 CST 2004


On Mon, 22 Nov 2004 09:12:58 -0600 (CST)
  Pearu Peterson <pearu at scipy.org> wrote:
> 
> 
> On Mon, 22 Nov 2004, Nils Wagner wrote:
> 
>> Hi all,
>>
>> Assuming that libblas.a and liblapack.a are located in 
>>/usr/lib
>> how do I build scipy from cvs without usage of ATLAS ?
>> What are the neccessary steps ? (modify setup.py ?)
> 
> Please read 'Linear Algebra libraries' section in
> 
>   http://www.scipy.org/documentation/buildscipy.txt
> 
> All you need is to specify BLAS and LAPACK environment 
>variables and set ATLAS=None. No need to modify setup.py. 
>To see if proper libraries are found by scipy setup.py 
>script, study the output of
> 
>   python system_info.py lapack_opt blas_opt
> 
> Also note that on some systems 
>/usr/lib/lib{blas,lapack}.a
> (i) may use ATLAS libraries (e.g. Debian)
> (ii) or these BLAS/LAPACK libraries are not complete 
>(e.g. RedHat).
> 
> So, in general, using /usr/lib/lib{blas,lapack}.a for 
>Fortran BLAS/LAPACK libraries is not always reliable but 
>getting BLAS/LAPACK from netlib and building them 
>yourself is.
> 
> Pearu
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user

  
Pearu,

Following the notes
http://www.scipy.org/documentation/buildscipy.txt
Or get LAPACK/BLAS sources as follows:

gives

Traceback (most recent call last):
   File "setup.py", line 112, in ?
     setup_package(ignore_packages)
   File "setup.py", line 99, in setup_package
     url = "http://www.scipy.org",
   File "scipy_core/scipy_distutils/core.py", line 73, in 
setup
     return old_setup(**new_attr)
   File "/usr/local/lib/python2.3/distutils/core.py", line 
149, in setup
     dist.run_commands()
   File "/usr/local/lib/python2.3/distutils/dist.py", line 
907, in run_commands
     self.run_command(cmd)
   File "/usr/local/lib/python2.3/distutils/dist.py", line 
927, in run_command
     cmd_obj.run()
   File 
"/usr/local/lib/python2.3/distutils/command/build.py", 
line 107, in run
     self.run_command(cmd_name)
   File "/usr/local/lib/python2.3/distutils/cmd.py", line 
333, in run_command
     self.distribution.run_command(command)
   File "/usr/local/lib/python2.3/distutils/dist.py", line 
927, in run_command
     cmd_obj.run()
   File "scipy_core/scipy_distutils/command/build_src.py", 
line 81, in run
     self.build_sources()
   File "scipy_core/scipy_distutils/command/build_src.py", 
line 88, in build_sour
ces
     self.build_extension_sources(ext)
   File "scipy_core/scipy_distutils/command/build_src.py", 
line 122, in build_ext
ension_sources
     sources = self.generate_sources(sources, ext)
   File "scipy_core/scipy_distutils/command/build_src.py", 
line 164, in generate_
sources
     source = func(extension, build_dir)
   File "Lib/lib/lapack/setup_lapack.py", line 87, in 
get_clapack_source
     target = join(build_dir,target_dir,'clapack.pyf')
NameError: global name 'join' is not defined
nwagner at linux:~/cvs/scipy> echo $LAPACK_SRC
/home/nwagner/src/lapack/LAPACK/SRC
nwagner at linux:~/cvs/scipy> echo $BLAS_SRC
/home/nwagner/src/blas
nwagner at linux:~/cvs/scipy> echo $ATLAS
None

Any suggestion how to continue ?

Nils



More information about the SciPy-user mailing list