Hi Massimo,

I spend some time on the issue. The refactor you mentioned must be this one.
  
http://code.google.com/p/web2py/source/diff?spec=svn922&r=910&format=side&path=/trunk/gluon/import_all.py&old_path=/trunk/gluon/import_all.py&old=707

In my very old memory, py2exe can automatically handle normal import like:
  import blah
but not:
  exec("import blah")
So, the above refactor should cause broken down. I would say, if all the 
meaning of import_all.py is only to please py2exe, then this refactor seems not 
a good idea.

On the other hand, since you still manage to release 1.62rc4 's win binary 
package (how could?), so I suggest "do not fix it if it is not broken".


If you really insist, take a look at attached sample setup_exe.py. It uses two 
py2exe options, the 'packages' and 'includes', to reach same goal.

Yet, please do enough test if you wanna take my patch, because my py2exe-0.6.9 
environment might be very different to yours. For example, my py2exe, like most 
others, can not run source code with the variable __file__, so I have to adjust 
web2py.py to make py2exe work. I don't know why your py2exe can bear that.

Best regards,
                            Iceberg, 2009-May-17, 03:23(AM), Sun



----------------------- Original Message -----------------------
From:    mdipierro <mdipie...@cs.depaul.edu> 
To:      web2py Web Framework <web2py@googlegroups.com> 
Date:    Sat, 16 May 2009 09:46:39 -0700 (PDT)
Subject: Re: Can't get web2py to run as Windows service
-------------------

> Iceberg,
> 
> I need your help. The import_all.py file was including expliclty all
> required packages so that setup_exe would find them. I accepted a
> patch that refactored import_all and may have broken setup_exe. Can
> you check?
> 
> Instead of reverting
> import_all, can you suggest how to modify setup_exe and setup_app so
> that all system modules and additional required module are included in
> the binary?
> 
> Massimo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: setup_exe.py
Description: Binary data

Attachment: web2py.py
Description: Binary data

Reply via email to