Web2py binary conversion

73 views
Skip to first unread message

mostwanted

unread,
Aug 21, 2019, 9:16:18 AM8/21/19
to web2py-users
I was wondering, is there a way to convert web2py binaries into .exe files with pyinstaller? If so what's the process?

Regards:

Mostwanted

Nico Zanferrari

unread,
Aug 21, 2019, 1:10:27 PM8/21/19
to web...@googlegroups.com
Do you mean a single EXE file containing everything that will be silently extracted in the TEMP folder everytime? This should be easy, but with slow startup and no persistence....

Nico

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8d2f5b88-e2fd-4072-bbe9-81ca729379b2%40googlegroups.com.

mostwanted

unread,
Aug 21, 2019, 4:30:43 PM8/21/19
to web2py-users
Yes thats what i was thinking, how is it done?


On Wednesday, August 21, 2019 at 3:10:27 PM UTC+2, Nico Zanferrari wrote:
Do you mean a single EXE file containing everything that will be silently extracted in the TEMP folder everytime? This should be easy, but with slow startup and no persistence....

Nico

Il Mer 21 Ago 2019, 11:16 mostwanted <godir...@gmail.com> ha scritto:
I was wondering, is there a way to convert web2py binaries into .exe files with pyinstaller? If so what's the process?

Regards:

Mostwanted

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.

Nico Zanferrari

unread,
Aug 21, 2019, 10:20:16 PM8/21/19
to web...@googlegroups.com
Well, on a second thought is not so simple.

Basically, you just need to follow the instructions on my repository, but edit the build_web2py.py file. On line 85 add the command option -F (see here for details).
The problem is that I've had to exclude in the freezing process everything under the gluon folder. This was mandatory for keeping the web2py upgrade process as simple as possible (i.e. changing the web2py source files inside the ZIP file)...
So, you should also manage to include that gluon folder int he final EXE file...

Anyhow, the resulting EXE will have a  slow startup and no data persistence. This is not something that you expect from a web framework, isn't it? What's your purpose?


Nico


To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/7796f83f-0c4e-4228-9c4f-13ba8a8da309%40googlegroups.com.

mostwanted

unread,
Aug 22, 2019, 5:39:37 AM8/22/19
to web2py-users
Its kinda tedious! I do not have a major purpose at all, its just that I came across an app called bat2exe and i tried it on one of my binaries, it worked but not to my satisfaction because I could not move the created package to other computers, the package failed to work requiring the original file the package was create from so I wondered if PyInstaller could do a better job.

Regards

Mostwanted
Reply all
Reply to author
Forward
0 new messages