Hi Yury,

On Windows a dynamic library, by default, has the extension .dll. But a Python extension module must have the extension .pyd, at least under CPython. I assumed that the extension should be .pyd under PyPy too.

For what it is worth, here is a link to the Visual Studio solution I used to build the extension module
https://dl.dropboxusercontent.com/u/525329/C-API/Test.zip

--Johan



On 2014-02-24 13:13, Yury V. Zaytsev wrote:

Back when I was experimenting with CPyExt, I've learned that PyPy will
not load foo.so (not sure what the name should be like on Windows) by
default, because it doesn't have the right extension, which it will have
if it's built with PyPy distutils, but not if you have done this
manually with a Makefile.

The name should be something like 'foo.pypy-22.so', and the right suffix
is defined somewhere in distutils.



_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to