![](https://secure.gravatar.com/avatar/3081a54f25df80a9757dacac0795a416.jpg?s=120&d=mm&r=g)
On 20/10/2009, at 12:13 AM, ~suv wrote:
Arrgh - I was too fast to respond or too sloppy in testing! Obviously the path to the python installation (inside the MacPorts tree) is hardcoded into the modules - if I rename the installation directory (I have not used the default prefix '/opt/local') the python extension fail with the ominous 'fantastic lxml wrapper for libxml' story :(
Will try again tomorrow, but might need some help as well on how to create 'portable' python module packages...
I'm not sure how the original ones were created to be portable (I think JiHO built them). They certainly don't look portable since some link to dylibs in /opt/local. I may have broken them in that respect when I removed the DYLD_LIBRARY_PATH variable, though they appear to work on Leopard installations fine. This might be something to do with the different versions and architectures being linked to different libraries. That is, the ones I have tested on Leopard might only be linked to the system libraries and work, but the others to non- present Macports libraries.
I have a patch (attached) for the packaging script that does the path rewriting on the python files, but I'm not convinced it works completely since I was testing it on SnowLeopard and still couldn't get the extensions to run, as per my last email in the other thread. Anyway, that's as far as I got last time I had a chance to look at the problem.
Cheers, Michael