My system, OSX 10.6.8

I installed latest lapack/blas through fink. I also tried to write a kwant/build.conf file for specifying those libraries, but apparently it didn't work. I started with only the folowing lines in build.conf

$cat build.conf
[lapack]
libraries = liblapacke.dylib
library_dirs =  /sw/include/lapack/ /sw/lib/lapack/

which is the location of lapack stuff as installed by fink -at least what I think contains the relevant part. 


I also tried with

libraries = libclapack.dylib libf77lapack.dylib liblapack.dylib

library_dirs = /usr/lib/

extra_link_args = -dynamiclib -fPIC

However, python setup.py build ends up reporting just a default lapack & blas installation, so obviously my build.conf didn't work. That things don't work is confirmed when running

$python setup.py install
running install
running build
running build_tut
running build_py
running build_ext
**************** Build summary ****************
Default LAPACK and BLAS
No MUMPS support
running install_lib
running install_egg_info
Removing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/kwant-1.0.2-py2.7.egg-info
Writing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/kwant-1.0.2-py2.7.egg-info

$python -c 'import kwant; kwant.test()'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "kwant/__init__.py", line 14, in <module>
        exec 'from . import {0}'.format(module)
      File "<string>", line 1, in <module>
      File "kwant/system.py", line 17, in <module>
        from . import physics, _system
      File "kwant/physics/__init__.py", line 14, in <module>
        exec 'from . import {0}'.format(module)
      File "<string>", line 1, in <module>
      File "kwant/physics/leads.py", line 16, in <module>
        from .. import linalg as kla
      File "kwant/linalg/__init__.py", line 10, in <module>
        from . import lapack
    ImportError: cannot import name lapack

Can you help me in getting my lapack libraries correctly located by the build process? I will post the complete list of lapack/blas related directories populated by my fink installation if you need it.

This seems the only thing holding me back from getting kwant running, and thus, runnning the examples and simulations from the course.