[redland-dev] Bindings problem with custom python interp on OSX

Dave Beckett dave.beckett at bristol.ac.uk
Mon Sep 27 12:07:37 BST 2004


On Mon, 13 Sep 2004, Sébastien Pierre wrote:
> Le 10 sept. 04, à 17:33, Dave Beckett a écrit :
> I need a solution that works for both since I can't assume people are
> > using fink or fink's python.  So how do you suggest I write a test
> > that gets the arguments correct for these?
> 
> In fact, I'm not sure that you need the "-framework Python" to compile 
> the python module.

You do need it for the /usr/bin/python; I checked this.

> > There are multiple cases of the snippet you gave above
> > (...)
> > in the bindings Makefile.am/Makefiles.
> >
> > I'd rather not have OSX & fink, else OSX alone else ...
> >
> > It could be promoted to a configure test or option if that makes more
> > sense.  If so, I'd need some help in forming the test.
> 
> I would advice to add a --framework configure option that enables 
> compilation with the Python OSX framework -- strictly speaking Darwin 
> (Unix layer of OSX) does not have the notion of framework. People who 
> are going to compile Redland-bindings with Python on OSX are more 
> likely to use the non-framework version of Python.
> 
> Actually, I don't know either how to identify that the installed 
> version of python has a framework or not.

I wasn't sure either, so what I do now is invoke python to print
out it's 'prefix', and if it contains the word Framework, then
I add the extra option.  This is done in configure and creates
a variable PYTHON_LDFLAGS used in python/Makefile.am.  It's
in the redland-bindings CVS.

Since it's a make variable, any package can always override
it with 'cd python; make PYTHON_LDFLAGS=whatever"

I hope that works out OK. [Might have to repeat this for
OSX perl, ruby, ... ]

Cheers

Dave




More information about the redland-dev mailing list