I don't have a Mac. But I assume what I did in setup_exe.py can be copied to setup_app.py without change, because I already use platform- independent style such as os.path.join() & os.sep. Again, you need to test. :-)
Just one more tips. Try to define base_modules correctly according to python version in import_all.py, then no need in my setup_exe.py to further detect python version. This makes the code more clean. On May17, 11:31am, mdipierro <mdipie...@cs.depaul.edu> wrote: > fantastic!!!! > > can you do this for setup_app.py ? > > Massimo > > On May 16, 10:23 pm, Iceberg <iceb...@21cn.com> wrote: > > > If so, you can keep current import_all.py, but reduce its responsibility to > > only defining the base_modules according to python version. Then, like my > > setup_exe.py, we can just import and use base_modules as a "list of > > dependencies". Should any base modules be missing, py2exe will complain an > > ImportError. You can also capture this exception and generate some nice > > message like "Missing dependency blah, try to use easy_install blah" if you > > want, but I don't think it necessary. > > > As to contributed_modules, I slightly adjust my previous patch. Now the > > attached one should be able to automatically detect and pack all *.py > > inside gluon. So no need for import_all.contributed_modules > > > Still, you need to have a full test for it. Because my development does not > > have win32 module etc., I am not able to build a "full" package by myself. > > > Hope that helps. > > > Best regards, > > Iceberg, 2009-May-17, 11:13(AM), Sun > > > setup_exe.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 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 -~----------~----~----~----~------~----~------~--~---