On Mar 29, 2011, at 10:58 PM, Ronald Oussoren wrote:

> 
> On 29 Mar, 2011, at 22:02, Russell E. Owen wrote:
> 
>> I used easy_install to install py2app 0.6 and tried it out on one of 
>> several applications I distribute. Unfortunately the build failed with;
> 
> The testsuite is obviously not good enough yet to catch all errors.  I've 
> done some changes in how py2app deals with source files to clean up the code 
> that deals with zipped egg files, and that obviously introduced a problem.
> 
> I'll look into this, but that will at best be tonight (in CEST), and 
> otherwise next sunday.

Thank you. No rush. The old version (which I saved by archiving my 
site-packages) works fine. (My code has is a fairly severe test of py2app, so I 
upgrade cautiously.)

Let me know if there are any tests you want performed.

> BTW. Which version of python do you use?

That result was with Python 2.6.6 (from python.org).

> This is not related to this issue, but why do you use inclModules and 
> inclPackages? Does py2app not copy those resources automaticly? And if not, 
> do you use dynamic imports or only import statements?

For the most part it's due to dynamic loading. The application (named TUI) 
supports dynamically loaded scripts which may use any part of TUI, RO or 
matplotlib. I want to be sure the full packages are available even if some bits 
aren't used by the statically loaded main code.

I'm not sure why that one Tk dialog module needs to be manually specified; 
certainly at one time if I didn't specify it then the application would fail. 
Maybe it's no longer needed. (Scripts don't use dialog boxes, so it's not due 
to dynamic loading).

BTW: I'm also not allowing my code to be zipped up because I use __file__ to 
locate some non-code resources and the dynamically loaded scripts. I should 
convert that code but I'm not sure if there's a standard technique that will 
have long-term support. I recall that the 3rd party setuptools has something, 
but easy_install seems to be in flux.

-- Russell
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to