[redland-dev] Bindings problem with custom python interp on OSX
Dave Beckett
Dave.Beckett at bristol.ac.uk
Fri Sep 10 16:33:12 BST 2004
>>>>> On Fri, 10 Sep 2004 00:56:16 +0200, Sébastien Pierre <sebastien-lists at type-z.org> said:
Sébastien> Hi all, I had a problem with redland-bindings not linking
> the proper version of Python on OSX: it linked the system
> version of python, instead of the specific one provided by
> Fink (I am packaging Redland for Fink).
> The problem lies in the python/Makefile.in file, at line 561:
> 560: @if test `uname` = Darwin; then \
> 561: args=" -Wl,-F. -Wl,-F. -bundle -framework Python"; \
> For the binding to work properly in Fink, this line should
> be replaced by
>
> 561: args=" -bundle -flat_namespace -undefined suppress"; \
>
> The first version of the line works fine with OSX's
> python, but when the python interpreter is a plain Unix
> one (ie. the one which comes with Fink), the latter line
> is necessary.
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?
There are multiple cases of the snippet you gave above
if OSX
args=this way
else rest of unix
args=that way
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.
> The easiest solution for me is to create a patch and
> replace this line in the Fink package, but you might also
> want to take care of this particular case, as some other
> python module do.
That seems a good solution for now, pending some proper
fix.
Dave
More information about the redland-dev
mailing list