Differences between revisions 16 and 17
Revision 16 as of 2010-07-26 21:10:21
Size: 1600
Editor: chello212186002156
Comment:
Revision 17 as of 2010-07-28 06:16:48
Size: 2619
Editor: chello212186002156
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
  * http://undefined.org/python/py2app.html py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. py2app is similar in purpose and design to py2exe for Windows.
Line 3: Line 3:
This may be more current (believe the above is incompatible w/ current setuptools): == Installation ==
Line 5: Line 5:
   * http://svn.pythonmac.org/py2app/py2app/trunk/ (py2app version 0.5 2010-07-28 Ronald Oussuroren)
Line 7: Line 7:
== 2010-07 == "easy_install-X.Y -U py2app" should install the software, where X.Y is your favorite version of Python.
Line 9: Line 9:
=== Problems === There is one new feature in this release: experimental support for python 3. This basicly means that I managed to build a single application as a standalone application bundle, without much testing. Alias builds and plugin bundles almost certainly don't work (the first because alias builds use the Carbon module which isn't available in python 3, the latter because I had to rewrite the C code in the application bundles and probably have to do the same for plugin bundles).

== Link Collection ==

Current repository:

   * source http://svn.pythonmac.org/py2app/py2app/trunk/
   * documentation http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html

Original version:

  * source http://undefined.org/python (points to repository)
  * documentation http://undefined.org/python/py2app.html (might be old)

=== Problems before 0.5 ===
Line 13: Line 27:
 * here is some workaround http://hg.hardcoded.net/py2app,  * here
is some workaround http://hg.hardcoded.net/py2app,

py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. py2app is similar in purpose and design to py2exe for Windows.

Installation

(py2app version 0.5 2010-07-28 Ronald Oussuroren)

"easy_install-X.Y -U py2app" should install the software, where X.Y is your favorite version of Python.

There is one new feature in this release: experimental support for python 3. This basicly means that I managed to build a single application as a standalone application bundle, without much testing. Alias builds and plugin bundles almost certainly don't work (the first because alias builds use the Carbon module which isn't available in python 3, the latter because I had to rewrite the C code in the application bundles and probably have to do the same for plugin bundles).

Current repository:

Original version:

Problems before 0.5

  • for 64-bit systems, the pypi package (0.4.2) failed.
    • even with macholib, altgraph and modulegraph gathered from all around.
  • here

    is some workaround http://hg.hardcoded.net/py2app,

    • that i have not tested, as macholib is missing

current state

checkout and install. install with "python setup.py install"

ATTENTION some things are in /Library/Python and some things in /Library/Frameworks/Python.framework/.

questions

is it really necessary to run 'python setup.py py2app' with sudo ?

it writes into /Library ?

and there still is an error that ::

  • '/Library/Python/2.6/site-packages/py2app-0.5-py2.6.egg/py2app/apptemplate/prebuilt/main-i386'

is missing. There is only ::

  • main-fat3 main-intel main-universal

linking main-fat3 to main-i386 makes the build succeed, but the app crashes

I did not try main-intel or universal yet.

Development

Python Versions

modulegraph/util.py requires python>=2.6 for immutable bytes by 'b"something"'.

Testing

py.test is used for testing. modulegraph/util.py contains tests in util.py. maybe revert to unittest.

MacPython/py2app (last edited 2010-08-29 12:25:55 by chello212186002156)

Unable to edit the page? See the FrontPage for instructions.