[Pythonmac-SIG] py2app fails with 'optimize'

Bob Swerdlow rswerdlow at goombah.com
Tue Mar 15 21:36:44 CET 2005


I'm trying to move my application from bundlebuilder to py2app.  I upgraded 
to PyObjC 1.2, which includes py2app 1.7.  I get the following error when I 
include optimize=1 or optimize=2.  Without optimize, it works fine.

How do I get a good build with optimize on?

Thanks,
Bob

Here's the error message:

Traceback (most recent call last):
   File "/tmp/tmptCCn9S.py", line 218, in ?
     direct=1)
   File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages/py2app/py2app/util.py", line 208, in
byte_compile
     if force or newer(mod.filename, cfile):
   File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/distutils/dep_util.py", line 22, in newer
     raise DistutilsFileError, "file '%s' does not exist" % source
distutils.errors.DistutilsFileError: file 'boot_app.py' does not exist
error: command '/usr/bin/python' failed with exit status 1





More information about the Pythonmac-SIG mailing list