[Pythonmac-SIG] Trouble with py2app not building standalone on 10.5 Leopard
Kevin Walzer
kw at codebykevin.com
Mon Mar 31 23:36:07 CEST 2008
Derrick Hendricks wrote:
> I am trying to package a piece of software into a completely stand alone app
> so I can distribute it to other mac users. Currently, I'm using
> 10.5Leopard and am not having much luck. When creating this app, the
> python
> that gets added to the Contents/MacOS is a link to:
> /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
>
>
> While this will work for just about all stock 10.5 computers, this will not
> work for anything that doesn't have python 2.5 installed, and I need to
> package this for 10.3 and 10.4 for both PPC and i386 also, and these
> machines do not have python 2.5 unless they were added later.
>
>
py2app doesn't bundle the Python installed with OS X in /System--that's
by design. Technically, you really can't redistribute Apple bits.
Besides, there's no way that the Apple-installed Python on 10.5 will run
on an earlier version of the OS.
To get a truly standalone app bundle with py2app, you'll have to use a
separate build of Python, and wrap that. You can get this from
python.org. I think that build supports 10.3 and up (someone correct me
if I'm wrong).
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
More information about the Pythonmac-SIG
mailing list