Over the past few months I have spent time writing an NFS client library in C++ and recently I was asked to add Python bindings. I looked into ctypes and found that it was really not suitable for C++ and so I started looking at Boost.Python. Somehow I happened across Py++. With a minimal amount of time the GUI was able to output Boost.Python code. To make it work from Ubuntu:
* sudo apt-get install libboost-python1.37.0 libboost-python1.37-dev
* get Py++ from the website and sudo python setup.py install
* run pyplusplus_gui
– give it a header file
– point GCC_XML location at: /usr/bin/gccxml
– push a button … how easy is that?
Thanks for the useful info. It’s so interesting
Once I tried to use Py++ under Windows/Mingw.
This turned out to be more difficult.
Actually, I think I’m finding the same thing out – it’s a fascinating idea but strangely more complex than it probably should be. Did you just end up doing it manually?