Building Python/Mapscript

From Wildsong
Revision as of 00:16, 5 November 2005 by Brian Wilson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.