[Pythonmac-SIG] py2app wierdness

Ronald Oussoren ronaldoussoren at mac.com
Thu Apr 14 11:09:53 CEST 2011


On 12 Apr, 2011, at 6:32, Daniel Rogers wrote:

> 
> Hi,
> 
> I installed py2app with easy_install, using the system python on Mac OS X.
> Now when I try to build a .app that needs additional data directories,
> those additional data directories are not being copied to the application
> bundle.
> 
> For example,  I have a directory "fonts"
> 
> Regardless of if I add ['fonts'] as the value of "data_files" in the call
> to setup.py, or add 'fonts' as the value of 'resources' in the OPTIONS
> dict, "fonts" is not being copied to Contents/Resources and my application
> fails to startup correctly.  If I copy the directory to the resources path
> my hand the application will start normally.
> 
> Does the "data_files" option supposed work?  For all that I can tell, it
> doesn't work for the 'pygame' example either.

It is supposed to work, but probably broke due to some other changes. I'll look into this and will add a testcase that tests this option. 

Py2app at this time doesn't have very good test coverage, although that's improving as I'm adding new tests whenever I make changes to the code base.

Ronald



More information about the Pythonmac-SIG mailing list