On Fri, Oct 30, 2009 at 01:47, Chris Mohler <cr33dog@...400...> wrote:
Hmm - shouldn't this be the other way around? Try system-wide first, then fall back to bundled libs if need be? Particularly since the bundled version of lxml (and numpy?) is quite dated it seems to make sense to me - but then again I have no experience packaging for OSX.
I don't recall the specifics but I think it PYTHONPATH was not working exactly as PATH. For example, we are doing:
export PYTHONPATH="$TOP/python/site-packages/$ARCH/$PYTHON_VERS"
and this only *prepends* stuff to PYTHONPATH (or at least it used to), it does not replace it. With PATH, you would have to do:
export PATH="foo:$PATH"
to prepend, and
export PATH="foo"
would reset PATH, not add to it.
But maybe we can try:
export PYTHONPATH="$PYTHONPATH:$TOP/python/site-packages/$ARCH/$PYTHON_VERS"
and see if that works. Basically we need to test with a recent lxml version in MacPorts + the old one in Inkscape.app and check which one gets loaded in Inkscape eventually. I'll have to do some digging to check how I can get access to the lxml version used from within Inkscape so if someone wants to test that before me, by all means, please do! ;)
JiHO --- http://maururu.net