[pypy-dev] Compatibilidad with boost python
Riccardo Rossi
rrossi at cimne.upc.edu
Thu Jun 6 16:51:54 CEST 2013
Dear Amaury,
first of all thank you for your answer. I think i could hack the
boost to compile with a different python, however your last warning is
actuall the answer i was interested in getting.
if you tell me that the interface will be actually slower than in cpython,
than most probably it will not fit my needs.
i will keep monitoring your project (i really believe you do a very
interesting job) in the hope the link to C/C++ will get better (or that
boost_python will be ported based on cffi)
thank you
Riccardo
On Thu, Jun 6, 2013 at 4:35 PM, Amaury Forgeot d'Arc <amauryfa at gmail.com>wrote:
> Hi Riccardo,
>
> 2013/6/6 Armin Rigo <arigo at tunes.org>
>
>> On Sat, Jun 1, 2013 at 11:59 PM, Riccardo Rossi <rougered4 at 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
>
--
Dr. Riccardo Rossi, Civil Engineer
Member of Kratos Team
International Center for Numerical Methods in Engineering - CIMNE
Campus Norte, Edificio C1
c/ Gran Capitán s/n
08034 Barcelona, España
Tel: (+34) 93 401 56 96
Fax: (+34) 93.401.6517
web: www.cimne.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130606/c4ce113c/attachment-0001.html>
More information about the pypy-dev
mailing list