From mapscript/python directory I did the following: SWIG Version 1.3.31 swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i python setup.py install --force /james