English
Ask Your Question
0

How to use Python C extensions in pypy ?

asked 2011-09-27 04:32:03 +0000

kushaldas gravatar image

How to use Python C extensions in pypy in Fedora ? say any existing python module , if we want to use it in pypy, what should be the steps ?

edit retag flag offensive close delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-09-28 17:18:12 +0000

There's limited support for the CPython extension in PyPy. The only prerequisite is that the necessary functions of the C API of CPython are already implemented in PyPy.

-> http://morepypy.blogspot.com/2010/04/using-cpython-extension-modules-with.html

So, if the APIs are defined, the extensions should work out of the box, or a recompiling the extension should help.

Also see:

-> http://codespeak.net/pypy/dist/pypy/doc/faq.html

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers to your questions.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

Asked: 2011-09-27 04:32:03 +0000

Seen: 387 times

Last updated: Sep 28 '11