[SciPy-dev] latest scipy CVS fails to build with python-2.1

José Fonseca j_r_fonseca at yahoo.co.uk
Fri Mar 5 15:49:21 CST 2004

When trying to rebuild debian packages for lates CVS I noticed
it fails to build with python-2.1. When "byte compiling"
scipy_core python complains:

SyntaxWarning: local name 'magic' in 'get_atlas_version' shadows use of
'magic' as global in nested scope 'atlas_version_c'
  def get_atlas_version(**config):
And when trying to build scipy it fails with:

building extension "atlas_version" sources
creating build
creating build/src
global name 'magic' is not defined
    include_dirs = ['/usr/include']
    language = c
    library_dirs = ['/usr/lib']
    libraries = ['f77blas', 'cblas', 'atlas']
    define_macros = [('NO_ATLAS_INFO', 2)]
Traceback (most recent call last):
  File "setup.py", line 125, in ?
  File "setup.py", line 98, in setup_package
  File "setup.py", line 59, in get_packages
    config = setup_module.configuration(*args)
  File "/home/jfonseca/projects/debian/scipy/SciPy-0.2.1_253.3737/Lib/integrate/setup_integrate.py", line 23, in configuration
    linpack_lite = ('linpack_lite_src',{'sources':local_glob('linpack_lite','*.f')})
  File "/home/jfonseca/projects/debian/scipy/SciPy-0.2.1_253.3737/Lib/integrate/setup_integrate.py", line 17, in local_glob
    return glob.glob(os.path.join(*((local_path,)+names)))
NameError: global name 'local_path' is not defined

This must have been caused by some recent change in scipy_distutils
which violates python 2.1 syntax. Python 2.2 and 2.3 build fine.

Note that if there is no interest to support python 2.1 in scipy, I can
drop those packages just as well.

BTW, the reason scipy is not yet on debian official repository is that
no sponsor replied my request... I'll incorporate some fixes resulting
from the user feedback I received and try again.


Jose Fonseca

More information about the Scipy-dev mailing list