The reason I am still able to make executables is that I do not re- make them. I just replace the pyc files in Library.zip
Unless there is a way to pass the list of dependencies to setup_exe than we are unable to handle future version of web2py that depend on python packages not already included. I may need to revert import_all. On May 16, 3:07 pm, Iceberg <[email protected]> wrote: > 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=... > > 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 <[email protected]> > To: web2py Web Framework <[email protected]> > 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 > > > > setup_exe.py > 1KViewDownload > > web2py.py > < 1KViewDownload --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

