[pypy-dev] Python C-API on Windows

Johan Råde johan.rade at gmail.com
Mon Feb 24 14:50:07 CET 2014


Thanks Yury,

 >>>> import imp
 >>>> imp.get_suffixes()
[('.pypy-22.pyd', 'rb', 3), ('.py', 'U', 1), ('.pyc', 'rb', 2)]
 >>>>

That's useful to know.

Cheers,
Johan


On 2014-02-24 14:20, Yury V. Zaytsev wrote:
> On Mon, 2014-02-24 at 13:50 +0100, Johan Råde wrote:
>>
>> 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.
>
> Maybe you can check like this:
>
>      import imp
>      imp.get_suffixes()
>
> If this doesn't contain '.pyd', then that's your problem, otherwise
> something else is at fault.
>




More information about the pypy-dev mailing list