building Python extensions with XCode

Benjamin Golinvaux benjamin.golinvaux at euresys.com
Sun Apr 11 09:21:22 EDT 2004


Dear list members,

I am experienced at building and debugging Python extension DLLs under
Windows, but I would like to do the same using my Mac.

I would like to know how i can create a library that is recognized as
as Python extension. I know i could use distutils with a setup.py
file, but i would like to exactly understand what's going on wrt
compiler flags, etc....

Also, i would like to be able to debug my extension using XCode. I
know that, under Windows, one needs to use a debug build of Python to
run debug extensions, and that the _d suffix needs to be appended to
the extension name for it to be loaded by python_d. Is it specific to
Window or is it the same under Mac OS X as well ?

Thanks so much for your help. I've googled quite hard for this answer
but couldn't find a simple tutorial.

Best

Benjamin Golinvaux



More information about the Python-list mailing list