Hi Riccardo,

2013/6/6 Armin Rigo <ar...@tunes.org>

> On Sat, Jun 1, 2013 at 11:59 PM, Riccardo Rossi <rouger...@gmail.com>
> wrote:
> >               I am writing since I would like to understand if it is
> > possible to use pypy together with modulus and types exported by
> > boost_python.
>
> I am sorry not to be able to answer you.  Hopefully others here have a
> better idea about boost_python than what I do.  Hi there, please speak
> up if you do :-)
>

There was some work a while ago to support boost::python in PyPy.
In any case you have to recompile the boost::python library with pypy
headers
(and .lib on Windows) and your C++ code as well.

I can't remember the details, but I know modified some user-config.jam file
(or was it site-config.jam?) to set the correct Python paths.
And be sure to name your extension module foo.pypy-20.so (or
foo.pypy-20.pyd on Windows)

Then, the usual warnings about cpyext apply:
The interface between C/C++ and Python is very slow,
and not all of the CPython API is implemented.
But it did pass a lot of the test suite.

Sorry I don't have any turnkey solution.

-- 
Amaury Forgeot d'Arc
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to