[Pythonmac-SIG] Extending python

Matthew Smith mps@viewbuild.com
Fri, 06 Dec 2002 10:12:11 +1100


Thanks for the help guys,


>> I need create a extension module, but am unsure as to how to go about doing
>> it. Is using distutils the only way or is there an easier way? (os x
>> specific maybe???)
> 
> This depends somewhat on which version of Python you are trying to
> extend. If you are extending the "unix-y" python that came with Jaguar,
> or probably any of the mach-o versions, distutils is the easiest way to
> go. For a simple extension, most of it is all set up for you. see:
> 
> http://www.python.org/doc/current/ext/building.html
> 
> On MacPython on OS-9 or Carbon on OS-X, you probably want to use
> CodeWarrior, and I'm not sure how easy it is to use distutils with that.
> It's not all that hard to set up a project file, however. Post a note
> here with your version of CodeWarrior, and someone can probably send you
> a sample.

I'm working with the framework build on 10.2.2 - so distutils it is!!

> Go to the Python Language home page (www.python.org) and browse the
> documentation table of contents--there is a tutorial there to get you
> started. And, for the simple things I have tried, distutils works
> properly on OS X 10.2.2.
> -Chris

Thanks,

Cheers

Matt