pyd == dll, or how to create a c-extension with visual studio

"Martin v. Löwis" martin at v.loewis.de
Fri Jan 17 12:39:44 EST 2003


Axel Kowald wrote:
> if I want to create a c-extension for python with visual studio under 
> windows, do I compile my source code into a dll and then simply rename 
> the extension to pyd ??  Or is a pyd file different from a dll ?

It is not different. You can either rename the file, tell the VC++ 
project that the name of the output file is foo.pyd, or just use .dll as 
the extension name.

> If someone has a simple Visual-Studio project file for creating a python 
> c-extension, I would be grateful for a copy.

I recommend to use distutils instead of project files.

Regards,
Martin






More information about the Python-list mailing list