From: Richard J. <ric...@op...> - 2006-07-28 23:25:14
|
On Friday 28 July 2006 22:45, Chris Bainbridge wrote: > On 28/07/06, Jean de Largentaye <je...@la...> wrote: > > All I can say is that building PyODE for ODE 0.6 isn't a trivial task, > > though it shouldn't be very hard. If you can do it (and for Ubuntu! > > thus closer to Debian), I shall enshrine you ^_^. Heck, it's something > > I'd love to be able to help with, if only I had the time (and the net > > at home...). > > I just finished building it on gentoo, and it should build on other > linuxes, just replace setup.py with the one that will appear shortly > on http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pyode/files/ libode is installed in /usr/local/lib on my system. I've attached a modified setup.py which searches for libode. I still got compilation errors though until I removed the generated ode_*.c source files and had pyrex re-generate them. Then it all worked fine with one test failure that looks like a rounding error: richard@shiny:/usr/local/src/PyODE-1.1.0/tests$ python test_xode.py ....................................................F........................................................ ====================================================================== FAIL: testAxis2FudgeFactor (__main__.TestJointParser) ---------------------------------------------------------------------- Traceback (most recent call last): File "test_xode.py", line 612, in testAxis2FudgeFactor self.assertEqual(self.joint8.getParam(ode.ParamFudgeFactor2), 0.2) AssertionError: 0.20000000298023224 != 0.20000000000000001 ---------------------------------------------------------------------- Ran 109 tests in 0.927s All the examples (except the one requiring cgtypes) work fine. Richard |