[Pythonmac-SIG] py2app includes all python documentation in the app
Frank Niessink
frank at niessink.com
Wed Apr 19 20:18:45 CEST 2006
Bob Ippolito:
> It does just copy Resources. You'll have to use the latest py2app 0.2
> maintenance branch from svn.
>
> http://svn.red-bean.com/bob/py2app/branches/py2app-0.2-maint/
Thanks Bob,
I checked out py2app from the URL given, ran setup.py as instructed.
When I run python setup.py py2app, I get the following exception:
copying /Library/Frameworks/Python.framework/Versions/2.4/bin/python ->
/Users/frank/taskcoach/build/TaskCoach.app/Contents/Frameworks/Python.framework/Versions/2.4/bin
Traceback (most recent call last):
File "make.py", line 125, in ?
setup(**setupOptions)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py",
line 149, in setup
dist.run_commands()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 946, in run_commands
self.run_command(cmd)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py",
line 966, in run_command
cmd_obj.run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/build_app.py",
line 373, in run
self._run()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/build_app.py",
line 494, in _run
self.run_normal()
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/build_app.py",
line 554, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/build_app.py",
line 644, in create_binaries
mm.run_file(runtime)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/macholib/MachOStandalone.py",
line 87, in run_file
mm.run_file(fn)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/macholib/MachOGraph.py",
line 65, in run_file
raise ValueError, '%r does not contain architecture %s' %
(pathname, self.arch)
ValueError: '/Library/Frameworks/Python.framework/Versions/2.4/Python'
does not contain architecture i386
This makes sense, somewhat, because I use the PPC version of Python
2.4.1 on a Intel Mac Mini. The reason for this is that there is no
universal build of wxpython available yet.
Apparently, py2app is expecting a i386 python version? Why? How can I
tell it to expect and use the PPC version?
Thanks, Frank
More information about the Pythonmac-SIG
mailing list