This is how we setup PCL <http://trac.gispython.org/projects/PCL> under debian. Of course having a package would be better...

Install dependencies

apt-get install mapserver-bin python-mapscript mapserver-cgi
gdal-bin python-gdal python-dev libgeos-dev libgdal-dev
libgd2-xpm-dev python-setuptools zope-interface
python-elementtree

Now link libgdal.a to libgdal1.3.2.a

Install PCL from sources

svn co  http://svn.gispython.org/svn/gispy/PCL/trunk

cd PCL/

cd externals/OWSLib
python setup.py install --prefix=my_python_library

cd externals/QuadTree
python setup.py install --prefix=my_python_library

cd PCL-Core
python setup.py install --prefix=my_python_library

cd PCL-GDAL
python setup.py install --prefix=my_python_library

cd PCL-MapServer

Put in a directory the source code of mapserver corresponding to the package version installed above. Get it from http://mapserver.gis.umn.edu/download or with dpkg-src.

Edit setup.py to set ms_home to the path of the above mapserver sources.

python setup.py install --prefix=my_python_library

my_python_library now contains Python eggs and directories with Python and C libraries.

blog entry of