[Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?

Christopher Barker Chris.Barker at noaa.gov
Wed Apr 23 18:05:21 CEST 2008


Brian Berliner wrote:
> So, I'm using Xcode 3.0 with Python and Objective-C/Cocoa files intermixed.
> Right now, I just do the Xcode "Build" process, which creates my foo.app 
> package.

I have no idea how Xcode builds a combined Python/ObjectiveC app. IN 
fact, I didn't know it could do it at all -- is it embedding python?

> Would py2app be appropriate for me, 

It sounds like XCode is building your app for you, if so, you don't need 
py2app.

Does the resulting app bundle work as a stand-alone on a stock Leopard 
install?

I'd take a look in the resulting app bundle and see what's there. It may 
only have *.pyc files anyway, so you're done.

> Also, I'm developing on Leopard for Leopard, if that matters...

Which means you are probably using the Apple-supplied python, and that 
the resulting app bundle relies on it. That's fine, as long as you only 
need to deploy on Leopard (though I'd make sure to test on both PPC and 
Intel, if you do need to support both). Be aware, however, than Apple 
has always replaced python with a new version with OS upgrades, so your 
app bundle may not work on future versions of OS-X.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (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