[SciPy-dev] Problems with building scipy

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Dec 1 06:15:23 CST 2004


Hi all,

Finally, I decided to use FORTRAN LAPACK/BLAS libraries instead of ATLAS.
The environmental variables are set as follows
vs/scipy> echo $ATLAS
None
cvs/scipy> echo $BLAS
None
cvs/scipy> echo $LAPACK
None
cvs/scipy> echo $LAPACK_SRC
/var/tmp/src/lapack
cvs/scipy> echo $BLAS_SRC
/var/tmp/src/blas

Now python2.3 setup.py build yields

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/lib/python2.3/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.3/distutils/dist.py", line 907, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.3/distutils/dist.py", line 927, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.3/distutils/command/build.py", line 107, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.3/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/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_sources
    self.build_extension_sources(ext)
  File "scipy_core/scipy_distutils/command/build_src.py", line 122, in 
build_extension_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/blas/setup_blas.py", line 94, in get_cblas_source
    f = open(source,'w')
NameError: global name 'source' is not defined

Nils


 





More information about the Scipy-dev mailing list