[ODE] python bindings?

Paul Rudin paul.rudin at ntlworld.com
Sun Jun 1 04:43:01 2003


Matthias Baas <baas@ira.uka.de> writes:

> At 08:13 18.05.2003 +0100, Paul Rudin you wrote:
> > > I may not be remembering correctly, but make sure that:
> > >
> > >     * You link C++ programs with g++ and not gcc.
> >
> >Yes - this turns out to be the problem... although in this case gcc
> >was being invoked indirectly for me by the python setup machinery. So
> >I'm guessing that it's really either a minor bug in the python
> >distutils stuff or else in Matthias's setup script?
> 
> I also compiled it on Linux (SuSE 8.1) and haven't had those problems...?

Mine's RH9 with python 2.2.2.

> Anyway, I'll try to use a C++ file extension for the Pyrex generated
> file so that hopefully the module gets compiled using g++ on all
> machines.


> 
> >(Incidentally - a very minor observation: on my linux box pyrex
> >apparently can't cope with the dos style line ends in ode.pyx.)
> 
> If I remember correctly they wanted to fix this in Python 2.3, so that
> any implementation will be able to deal with DOS and Unix style
> newlines.
> But what's the general way to solve this problem for previous
> versions? Should I also provide a *.tar.gz which contains Unix style
> files?

I suppose; or just document the problem? It's trivial to fix once you
know what the issue is.

Thanks for this by the way... I've been away for a while but now that
I'm back I plan to give your python bindings a proper work out.