On Jan 14, 2012, at 4:50 PM, Jesse van den Kieboom wrote:
> 2012/1/15 John Ralls <
jralls ceridwen us>
>
> On Jan 14, 2012, at 2:52 PM, Jesse van den Kieboom wrote:
>
> > I have been trying to compile different binaries (10.4/32, 10.5/64 and 10.6/64) on a Snow Leopard machine. Everything seems to be working (with some added patches), but there are two things remaining that I'm unsure of how to handle.
> >
> > 1) Python
> > I'm currently building python in jhbuild, in particular because otherwise the build for 10.4 does not succeed. I'm wondering though if this means that I will need to supply python with my package (I would rather not, since it takes a lot of space), or if I can still rely on the system python to be used? I read the comments on compiling python related stuff on a 64 bit machine (targetting a 32 bit sdk), but I'm not entirely sure I understand the consequences.
> >
>
> I think that you have to build Python and include it in the bundle unless you are targeting the distribution to only one version of the OS. AFAIK Python libraries are not forward or backward compatible. Also note that if you are bundling a python application, python will need to be in Contents/MacOS so that the @executable-path/../Resources/lib/python2.7/site-packages rpaths work.
>
> Hmm, I was planning to built for 10.4, 10.5 and 10.6. I'm not sure about the rpath thingie, I simply set PYTHONPATH in my launcher.
The rpath comes in when you have shared libraries (as opposed to loadable modules) that link against your python executable, BerkeleyDB for example. If what you're doing is working, don't worry about it.