[Pythonmac-SIG] Using distutils with XCode

Chris Barker Chris.Barker at noaa.gov
Fri Sep 30 18:07:54 CEST 2005


Paul Kinnane wrote:
> the distutils on OSX10.4.  I don't have CodeWarrior 7 and wondered if it
> was possible to manually compile the library using XCode?  I see it is
> possible using MPW
> (http://www.nevada.edu/~cwebster/Python/MPWHOWTO/MPWHOWTO.html) -

that is a very old doc, and only applies to OS-9 and below.

On OS-X, the standard way to compile python is with Apple's gcc. 
provided with the XCode package.

you should be able to do a simple:

python setup.py build

at the command line, if you want to use the Apple-provided python. If 
you've installed python2.4.1, then do:

python2.4 setup.py build

or

/usr/local/python setup.py build

depending on how your PATH is set.

If this doesn't work, post your errors, and we'll see what we can 
suggest. If the code works with gcc on other systems (Cygwin, Linux, 
etc), then there is a good chance it will work on OS-X. If it's only 
been compiled with MS compiler, it may need some tweaking.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list