like py2exe, but on a mac

Russell E. Owen rowen at cesmail.net
Tue Jul 29 15:24:49 EDT 2008


In article <5K9jk.278$rb5.198 at trnddc04>,
 William McBrine <wmcbrine at users.sf.net> wrote:

> On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote:
> 
> > http://undefined.org/python/py2app.html
> 
> py2app bundles Python itself into the app, right? I wonder, is there no 
> way to create an app bundle that relies on the existing installation of 
> Python, since OS X already comes with Python? I have a tiny little 
> program (~20k) that I'd like to make into an app bundle, if only to 
> suppress the console window, and I'd rather not lump in the whole Python 
> interpreter if I can avoid it.

That is exactly what py2app does by default if you run py2app with the 
system python.

If you run py2app with a non-system python then that python is bundled 
with the application.

Note that different versions of MacOS X have different versions of 
system python. So if your application needs any 3rd party packages then 
including python with the app will allow it work with more versions of 
MacOS X.

-- Russell



More information about the Python-list mailing list