[SciPy-Dev] Scipy on Python 3

Warren Weckesser warren.weckesser@enthought....
Sat Sep 11 20:38:07 CDT 2010


Pauli Virtanen wrote:
> Hi,
>
> I flushed the Python 3 branch containing work from me and David to SVN 
> trunk. Scipy now builds with Python 3, and all tests pass, except for 
> scipy.weave which still needs to be ported.
>
> More testing is welcome. I suspect Scipy's test suite does not cover all 
> of the code, so there might be some work left to do. You'll probably need 
> the latest 1.5.x branch Numpy to build, due to some fixes in Numpy's 
> distutils that are not in 1.5.0.
>
>   

Hey Pauli,

I built numpy 1.5.x using "python setup.py build", and added the built 
lib directory to PYTHONPATH.  Is this sufficient to build scipy trunk?  
When I try to build scipy, I get the following:


-----
$ python setup.py build
non-existing path in 'scipy/cluster': 
'/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/include'
non-existing path in 'scipy/cluster': 
'/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/include'
Warning: No configuration returned, assuming unavailable.blas_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-msse3', 
'-I/System/Library/Frameworks/vecLib.framework/Headers']

lapack_opt_info:
  FOUND:
    extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
    define_macros = [('NO_ATLAS_INFO', 3)]
    extra_compile_args = ['-msse3']

umfpack_info:
  libraries umfpack not found in 
/Library/Frameworks/Python.framework/Versions/6.2/lib
  libraries umfpack not found in /usr/local/lib
  libraries umfpack not found in /usr/lib
/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/system_info.py:459: 
UserWarning:
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified 
in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.
  warnings.warn(self.notfounderror.__doc__)
  NOT AVAILABLE

non-existing path in 'scipy/spatial': 
'/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/include'
non-existing path in 'scipy/special': 
'/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/include'
non-existing path non-existing path non-existing path in 
'scipy/special': 
'/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/include'
Traceback (most recent call last):
  File "setup.py", line 177, in <module>
    setup_package()
  File "setup.py", line 169, in setup_package
    configuration=configuration )
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/core.py", 
line 152, in setup
    config = configuration()
  File "setup.py", line 118, in configuration
    config.add_subpackage('scipy')
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 972, in add_subpackage
    caller_level = 2)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 941, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 878, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/setup.py", line 20, in configuration
    config.add_subpackage('special')
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 972, in add_subpackage
    caller_level = 2)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 941, in get_subpackage
    caller_level = caller_level + 1)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 878, in _get_configuration_from_setup_py
    config = setup_module.configuration(*args)
  File "scipy/special/setup.py", line 54, in configuration
    extra_info=get_info("npymath")
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 2092, in get_info
    pkg_info = get_pkg_info(pkgname, dirs)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/misc_util.py", 
line 2044, in get_pkg_info
    return read_config(pkgname, dirs)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/npy_pkg_config.py", 
line 384, in read_config
    v = _read_config_imp(pkg_to_filename(pkgname), dirs)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/npy_pkg_config.py", 
line 320, in _read_config_imp
    meta, vars, sections, reqs = _read_config(filenames)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/npy_pkg_config.py", 
line 304, in _read_config
    meta, vars, sections, reqs = parse_config(f, dirs)
  File 
"/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/distutils/npy_pkg_config.py", 
line 276, in parse_config
    raise PkgNotFound("Could not find file(s) %s" % str(filenames))
numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s) 
['/Users/warren/numpy_src_1.5.x/build/lib.macosx-10.5-i386-2.6/numpy/core/lib/npy-pkg-config/npymath.ini']
$

-----


Warren



More information about the SciPy-Dev mailing list