[C++-sig] compiling python extensions to work for multiple versions of python

2011-05-25 Thread Karl Kuehn
I am working on compiling a python extension (specifically libtorrent-rasterbar), and would like to wind up with a single executable that I can use on multiple versions of MacOS X (specifically 10.5 and 10.6) without having to force the version of python used on each version (10.5 has 2.

Re: [C++-sig] compiling python extensions to work for multiple versions of python

2011-05-25 Thread Wichert Akkerman
On 5/25/11 17:21 , Karl Kuehn wrote: 1) Is this a limitation of Boost.Python? A trick from MySQL that I can emulate? Am I missing something obvious? I have tried a large number of variations in build commands using combinations of the following: This is a limitation of python, and I would be

Re: [C++-sig] compiling python extensions to work for multiple versions of python

2011-05-25 Thread Karl Kuehn
On May 25, 2011, at 8:25 AM, Wichert Akkerman wrote: >> 1) Is this a limitation of Boost.Python? A trick from MySQL that I can >> emulate? Am I missing something obvious? I have tried a large number of >> variations in build commands using combinations of the following: > > This is a limitation

[C++-sig] boost::python - how to pass by reference/pointer to python overriden class functions

2011-05-25 Thread Jay Riley
Hi all, Hopefully this is the correct way to post a question, If not I apologize as I haven't used mailing lists before. Anyways, here is my problem: I have some class functions that takes in parameters by pointer. However, when I expose and override this class/these functions in boost::pytho

Re: [C++-sig] boost::python - how to pass by reference/pointer to python overriden class functions

2011-05-25 Thread Jim Bosch
On 05/25/2011 02:26 PM, Jay Riley wrote: I have some class functions that takes in parameters by pointer. However, when I expose and override this class/these functions in boost::python, any changes I make to the parameters are not reflected back to the original, meaning it isn't being passed by

Re: [C++-sig] boost::python - how to pass by reference/pointer to python overriden class functio

2011-05-25 Thread charlessolar
You may want to try having Py++ do an example wrapping of a header file or two, thats always what I did while I was wrapping parts of my code that I was not sure about the right conventions in boost python. That being said, I have also never tried passing a pointer to python for python to e

Re: [C++-sig] boost::python - how to pass by reference/pointer to python overriden class functions

2011-05-25 Thread Jay Riley
Your reply actually helped alot. I hadn't considered that the call_method might have been being used incorrectly. Turns out it was. After looking up the documentation for call_method, by changing void StatusEffectWrapper::TickCharacter(Game::Character::BaseCharacter* character, Game::Batt