Re: [Orbit-python-list] Porting to Python 2.0b1
Status: Inactive
Brought to you by:
tack
From: Roland M. <ma...@ec...> - 2000-09-07 15:44:21
|
Roland Mas (2000-09-06 18:54:34 +0200) : > I therefore suggest renaming at least some of ORBit-Python's > functions to something with a prefix (I used "OPY_" as a quick hack, > but I don't intend to keep it). I'll grep through the sources of > ORBit-Python, then nm through libpython2.0.a, see the intersection of > the function names thusly obtained, and rename them. Expect a series > of CVS commits soon :-) Not there yet, but here is an intermediate hack, committed to CVS. From the ChangeLog: * added a #define and some #ifndef's to make it easy to temporarily comment out the (unfortunately buggy) thread-safe-ication code. That code will probably have to go when the bug is fixed. * renamed init_exceptions() to ORBit_Python_init_exceptions() to avoid namespace conflict with a similarly named function appearing in Python 2.0. Works fine with 2.0b1. > BTW: how do I add a conditional to ./configure so that I can keep > the threading support out? (Or alternatively, when will it be > fixed? :-) Probably not worth adding a conditional. I added #ifndef's, so you can type 'make CFLAGS="-DORBIT_PYTHON_NOT_THREADED"', and anyway that code is supposed to go away at some point. Roland. -- Roland Mas Sauvez les castors, plantez des arbres. |