I'm trying to build matplotlib and basemap on a solaris box using the
latest SVN. My python, qt, tk, etc are all installed in a build
directory ($TOOLS). Under linux, the build goes fine and everything
works great. However, under solaris, both matplotlib and basemap
have link errors that say they can't find the python shared library
which is at $TOOLS/lib. Under linux, this shows up in the link line
as -L$TOOLS/lib but is missing on solaris.
I'm trying to figure out how I can add -L$TOOLS/lib to the link
line. For matplotlib, I was able to just hand copy the error message
to the command line, add -L$TOOLS/lib, and rerun 'python setup.py
build' to get it to work. This doesn't work for basemap though as it
seems to generate some intermediate files that are needed.
I edited setup.py to do this:
import sys
basedir[sys.platform] = [ os.environ['TOOLS' ] ]
which seems to have worked on linux but doesn't seem to work on
solaris. I google'ed to try and figure out how to add a link option
using distutils and found something that said to do this:
python setup.py build build_ext -n -L$TOOLS/lib
but that doesn't build all the necessary components so my
installation ends up not working.
Does anyone know an easy way to add this link dir to the distutils build?
Thanks,
Ted
Ted Drain Jet Propulsion Laboratory ted...@jp...
|