From: Timothy S. <ti...@st...> - 2004-06-23 17:08:05
|
On Wed, 2004-06-23 at 00:07, Matthias Baas wrote: > And I think by using Pyrex we make it much=20 > easier to enable them to compile the module themselves. Pyrex is a small=20 > tool and it's easy to install and try out. Agreed. I've had a look at your code and they Pyrex manual and I definitely feel it is the best way to go. > That's why I have > a lookup table called "_geom_c2py_lut" in the module. This is just a=20 > dictionary that maps C pointers to Python objects. The problem now is,=20 > that Pyrex didn't support weak references at the time I was writing the=20 > module. As a result, I wasn't able to remove entries from this lookup=20 > table when the corresponding object was destroyed. I noticed you have commented out the Space.addgeom(). Why is that? Wouldn't it and a removegeom() method remove the need for a global geom dictionary? > Here's my opinion: I'd go for the C functions because they belong to the=20 > official and *documented* API. Agreed. > In general, I'm always in favour of a "Pythonic" interface, even if that > would mean that we would have to change the original interface slightly. Agreed. > 7) What build system do we use? > I would really recommend using the distutils as this is the standard way=20 > for distributing Python extension modules. It has the advantage that=20 > building the module works the same on every platform. Agreed. > 8) Shall we try to implement an XODE import/export in Python? > This might raise the popularity of the Python version... Yes. It looks pretty cool. > 9) Which operating systems can we support directly? > Or in other words: What systems are you working on? I'm mainly on=20 > Windows XP and can occasionally do tests on Linux (SuSE 8.2). I'm working exclusively on Gentoo Linux. > 10) ...what else?... When I tried to import your PyODE in Python, it gave "undefined symbol: __cxa_pure_virtual". After some Googling, I added "stdc++" to LIBS in setup.py which fixed the problem. I think it's a problem with Gentoo's ODE package. Your collision tutorial demo has inspired me to work on PyODE again... --=20 Timothy Stranex <ti...@st...> |