creating stand-alone apps of web2py

128 views
Skip to first unread message

Joseph Jude

unread,
Mar 24, 2009, 9:05:17 AM3/24/09
to web2py Web Framework
Is there any guide/documentation on how to create stand-alone
applications of web2py (on windows/mac)?

Thanks,
Joseph

mdipierro

unread,
Mar 24, 2009, 10:38:17 AM3/24/09
to web2py Web Framework
You can get the current binary versions, create your app and rezip it,
as long as you comply with the license.

Joseph Jude

unread,
Mar 24, 2009, 11:48:41 AM3/24/09
to web2py Web Framework
Massimo,
I understood the license part. I believe using web2py, I could
create .exe & .apps. Is there any documentation on how to go about -
like steps to use setup.py?

Thx,
Joseph

mdipierro

unread,
Mar 24, 2009, 2:50:16 PM3/24/09
to web2py Web Framework
I am not sure I understand what you want to do.

If you name your app init, it will be the default app in web2py.
If you unzip web2py binary, run it, create the init app, and re-zip
it, this is as close as it gets to create an executable. The
executable is web2py, not your app, but your app comes with it and
starts when web2py starts.

You can also install your "init" app bytecode compiled so that you do
not give away the source code.

Massimo

Joseph Jude

unread,
Mar 24, 2009, 10:01:52 PM3/24/09
to web2py Web Framework
Thx Massimo. My confusion was because I saw setup_exe.py &
setup_app.py. I assumed that using these two files, I'll be able to
create executables.

Joseph

Iceberg

unread,
Mar 25, 2009, 10:16:00 AM3/25/09
to web2py Web Framework
Hey Jude, don't be afraid... :-)

I have been there and done that. In recent days I happened to work on
how to build an app into a stand-alone setup.exe for Windows platform,
by a single click. The work is mainly based on the free Inno Setup. I
am posting the almost-finished work to Massimo for some final
polishing.

dbb

unread,
Mar 25, 2009, 2:39:36 PM3/25/09
to web2py Web Framework
To iceberg:
when do think you are going to finish the instructions how to create
a standalone web2py application.

Best regards:

Dbb
> > > > Joseph- Hide quoted text -
>
> - Show quoted text -

Iceberg

unread,
Mar 25, 2009, 11:16:31 PM3/25/09
to web2py Web Framework
I have sent my current progress, a little web2py plugin, to Massimo
for a review. It might take a couple days I think.

The plugin can work now. But I am looking forward to simplify it
further, if Massimo agrees to let web2py_win.zip has a native "web2py-
no-console.exe" together with the current "web2py.exe"(with console).

But if you are really eager, take a look at InnoSetup. Basically my
plugin just wrap InnoSetup for convenience.

DJ

unread,
Mar 26, 2009, 1:32:57 PM3/26/09
to web2py Web Framework
Ice,

This is great! Something I have been looking forward to. Will this
allow a user to click and install the web2py application without
having to start the server each time they want to use it? Keep me
posted on this. Appreciate your efforts!

-Seb

Iceberg

unread,
Mar 27, 2009, 1:36:17 AM3/27/09
to web2py Web Framework
Mmmm, let me say it this way. With the plugin,
1. a developer can just click to have a setup.exe as his own
distribution package;
2. and the end user can run this setup.exe as every other normal
Windows programs, then have an entry in the Windows Startup Menu to
run web2py (each time he wants to use it), then use a browser to visit
"http://127.0.0.1:8000" to use the app.

Well, I know I have enough talking but not showing the real work, that
is not good. :-) Let's just wait some while until Massimo and me
finish some final work on it.

dbb

unread,
Mar 27, 2009, 9:20:25 AM3/27/09
to web2py Web Framework
Iceberg, sounds great!!!!!!!!!!, hope you will have it soon
> > > polishing.- Hide quoted text -

DJ

unread,
Mar 27, 2009, 1:19:03 PM3/27/09
to web2py Web Framework
Nice work...waiting to try it out!

On Mar 27, 1:36 am, Iceberg <iceb...@21cn.com> wrote:
Reply all
Reply to author
Forward
0 new messages