By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,750 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,750 IT Pros & Developers. It's quick & easy.

help using py2app

P: n/a
I'm trying to use py2app to convert the pySketch wxPython example into
a stand-alone OS X app. I've found the documentation at <http://undefined.org/python/py2app.html
>, but it wasn't terribly enlightening for me. My setup.py looks
like this:

#!/usr/bin/env python
"""
setup.py - script for building a bundled OS X application

Usage:
% python setup.py py2app
"""
from distutils.core import setup
import py2app

setup(
app=['pySketch.py'],
)
When I run this, it chugs along for a while and spews out lots of
output, and finally leaves me a bundle in the "dist" folder as it
should... but that app exits immediately. The only thing the console
log shows is:

Oct 2 16:59:21 IA-J1 kernel[0]: CODE SIGNING: cs_invalid_page:
p=12336[pySketch] clearing CS_VALID

A similar setup.py worked fine on on the "simple.py" example, but
clearly something more is needed here. Any clues? Or, is there a
better list/forum for asking about Mac-specific Python development?
(I've subscribed to the PyObjC mailing list, and sent a message to the
list, but it hasn't shown up yet... perhaps the SourceForge lists are
running slow today.)

Thanks,
- Joe

Oct 2 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Joe Strout wrote:
I'm trying to use py2app to convert the pySketch wxPython example into a
stand-alone OS X app. I've found the documentation at
<http://undefined.org/python/py2app.html>, but it wasn't terribly
enlightening for me. My setup.py looks like this:

#!/usr/bin/env python
"""
setup.py - script for building a bundled OS X application

Usage:
% python setup.py py2app
"""
from distutils.core import setup
import py2app

setup(
app=['pySketch.py'],
)
When I run this, it chugs along for a while and spews out lots of
output, and finally leaves me a bundle in the "dist" folder as it
should... but that app exits immediately. The only thing the console
log shows is:

Oct 2 16:59:21 IA-J1 kernel[0]: CODE SIGNING: cs_invalid_page:
p=12336[pySketch] clearing CS_VALID

A similar setup.py worked fine on on the "simple.py" example, but
clearly something more is needed here. Any clues? Or, is there a
better list/forum for asking about Mac-specific Python development?
(I've subscribed to the PyObjC mailing list, and sent a message to the
list, but it hasn't shown up yet... perhaps the SourceForge lists are
running slow today.)

Thanks,
- Joe
If py2app is anything like py2exe, there is always a lot more to do. if
you are importing modules, you need to explicitly include them into your
build folder.
Oct 2 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.