Unclear how to create a standalone OS X application

Issue #62 wontfix
Boris Smus
created an issue

There seem to be no documentation (other than old threads from 2004) on how to create a standalone .app bundle that embeds the Python interpreter without hand-writing a setup.py script.

Changing target to Release doesn't do it -- the binary is still quite small and doesn't work properly when invoked outside of Xcode.

This seems like the beginning of something, but it doesn't seem to be generic enough (lots of values are hardcoded): https://bitbucket.org/ronaldoussoren/py2app/src/f6d036b7b9a5/py2app/bundletemplate/setup.py

Thanks in advance! (And sorry Ronald, I don't know how else to contact you)

Comments (3)

  1. Ronald Oussoren repo owner

    The easiest way to build standalone application is to py2app for that. There is some fairly minimal documentation about py2app on http://pythonhosted.org/py2app/, but that should be enough to get you going.

    The various pyobjc examples also contain setup.py files for py2app.

    BTW. The file you link to is an internal tool of py2app itself and not an example of how to use py2app.

  2. Ronald Oussoren repo owner

    It would be nice to have an Xcode template for a PyObjC (or generic Python) application that uses py2app do automatically bundle dependencies, but it is fairly unlikely that I'll have time to work on that anytime soon (and not just because there is almost no documentation on how to create them)

  3. Log in to comment