Now it works on my mac. (the previous one had the same problem as listed above by picobit)
And for the swig dependency: I am trying to install it within virtualenv, but it again mixes up the global directories and the virtualenv ones. Then I tried to put it in one of the locations the makefiles tries, but even then there is some problem... So the build process is definitely not as straight-forward as your hand-written script suggests

(at least not when insisting on virtualenv)