Building Python/Mapscript
From Wildsong
Building mapscript for python on Linux
First build the appropriate python and install it (2.4.2 for me) Then build the python library like so
cd mapserver-4.6.1 cd mapscript/python cp modern/* . python setup.py build
You can run the included tests once it builds
cd tests/cases python runalltests.py -v
Unit testing! Hey, I think I might grow to like python. Once the tests indicate all is well, install mapscript.
cd ../.. python setup.py install
That's it. The iMap test should run now.