[python-win32] Building my own C extension

Ken Brooks kb at sparklight.com
Wed Nov 4 18:22:46 EST 2015


I have joined this list because I need to learn how to rebuild my antiquated Python extension properly for Windows. I need to build for Python 2.7, which is old and relies upon old compilers. I downloaded the suggested compiler:

http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe

I downloaded the thing that is supposed to correctly glue it to Python:

https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi

But I can't see where to go from there.

In my old world I never actually learned how to use distutils or setuptools; I was just building my extension with my VC and then shoving it into site-packages. As I read the documentation for distutils and setuptools, I am SO LOST! I see much about how to install someone else's package, but little about how to create and script my own package for building a Python extension written in C. Please, can someone point me to a good sample extension package that I can copy from?  A "hello world" or something? 

Apart from that, can someone please point me to the documentation for the current "right" way of building things, as an extension developer?

Thanks in advance,

Ken
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20151104/3d2b5363/attachment.html>


More information about the python-win32 mailing list