[Pythonmac-SIG] py2app includes all python documentation in the app

Frank Niessink frank at niessink.com
Wed Apr 19 21:53:24 CEST 2006


Bob Ippolito:
>>
>> Apparently, py2app is expecting a i386 python version? Why? How can I
>> tell it to expect and use the PPC version?
> 
> I actually don't know, I didn't write those patches.  I won't have time 
> to look into this for at least a week, but you might want to dig into 
> the source code and see if there's a way to ask it for some particular 
> architecture.

Your suggestion made me indeed read through the source code which made 
me find out there is an 'archs' option you can pass to py2app. archs is 
a comma-separated list of archs (in a string) to include. So I now pass 
"archs='ppc'" to py2app, which gets rid of the previous exception.

However, now I run an error while py2app is copying 
/Library/Frameworks/Python.framework/Versions/2.4/Python to the app 
bundle. It looks like it is copying that file twice which apparently the 
underlying code doesn't like (I think that is one of shutil's methods).
I'll investigate some more.

Thanks for the help, Frank


More information about the Pythonmac-SIG mailing list