Skip to content

Commit

Permalink
Binaries version 1.20201206 with Python 3.8.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nicozanf committed Dec 6, 2020
1 parent 1b95770 commit f451307
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# py4web-pyinstaller
How to make py4web binaries for Windows and MacOS with PY3 and PyInstaller

The binaries contain Python 64 bit version 3.7.4 with all the needed modules
The binaries contain Python 64 bit version 3.8.6 with all the needed modules
and the py4web in the specified version. You don't need anything else to run them!


Expand Down
17 changes: 13 additions & 4 deletions README_mac.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
## Full MacOs build recipe
1. Install Python 3 and py4web as usual. I've done it in Desktop/py4web with the "Try me (from source)" procedure and Python 3.7.4. It's better to use venv or a full VM ...
1. Install Python 3 and py4web as usual. I've done it in Desktop/py4web with the "Try me (from source)" procedure and Python 3.8.6. It's better to use venv or a full VM ...

1. install PyInstaller with:
sudo -H pip3 install --upgrade pyinstaller (I've got PyInstaller-3.6.tar.gz )
sudo -H pip3 install --upgrade pyinstaller (I've got PyInstaller-4.1.tar.gz )

1. copy build_py4web.py and py4web.win.spec from this repository to Desktop/py4web
1. copy extras, build_py4web.py and py4web.win.spec from this repository to Desktop/py4web

1. (optional, for having a full working interactive shell) change the fake site.py module included within the PyInstaller installation with the content of the files web2py.site_37.py from https://github.com/nicozanf/web2py-pyinstaller/blob/master/web2py.site_37.py - see comments inside that file for details
1. (optional, for having a full working interactive shell) change the fake site.py module included within the PyInstaller installation with the content of the files web2py.site_37.py
from https://github.com/nicozanf/web2py-pyinstaller/blob/master/web2py.site_37.py - see comments inside that file for details. It work for Python 3.8, too.

1. open a Terminal and go to Desktop\py4web. Run:

python3 build_py4web.py

If everything goes fine, you'll obtain the 64 bit binary build zipped as Desktop/py4web\py4web_osx.zip.


## NOTE:

There is a bug (see https://github.com/pyinstaller/pyinstaller/issues/5062) with Pyinstaller and Python >= 3.7.6. After compiling, you need to run on the compiled code:

$ sudo codesign --remove-signature Python


11 changes: 6 additions & 5 deletions README_win.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ the free and official "Visual C++ Redistributable for Visual Studio" as describe
## Full Windows build recipe


1. Install Python 3 and py4web as usual. I've done it in C:\py4web\ with the "Try me (from source)" procedure and Python 3.7.4. It's better to use venv or a full VM ...
1. Install Python 3 and py4web as usual. I've done it in C:\py4web\ with the "Try me (from source)" procedure and Python 3.8.6. It's better to use venv or a full VM ...
1. install PyInstaller with:
pip install --upgrade pyinstaller (I've got PyInstaller-3.6.tar.gz )
1. copy build_py4web.py and py4web.win.spec from this repository to C:\py4web\
1. (optional, for having a full working interactive shell) change the fake site.py module included within the PyInstaller installation with the content of the files web2py.site_37.py from https://github.com/nicozanf/web2py-pyinstaller/blob/master/web2py.site_37.py - see comments inside that file for details
pip install --upgrade pyinstaller (I've got PyInstaller-4.1.tar.gz )
1. copy extras, build_py4web.py and py4web.win.spec from this repository to C:\py4web\
1. (optional, for having a full working interactive shell) change the fake site.py module included within the PyInstaller installation with the content of the files web2py.site_37.py
from https://github.com/nicozanf/web2py-pyinstaller/blob/master/web2py.site_37.py - see comments inside that file for details. It work for Python 3.8, too.
1. open a CMD and go to C:\py4web. Run:

python build_py4web.py
Expand All @@ -22,4 +23,4 @@ If you try to run it in a 32 bit Windows system, you'll correctly get a 'web2py.

## Current problems

It seems that the Edge browser doesn't like the binary in my VM, and all the VM gets stuck for minutes at the first run. Other browsers are fine...
None
Binary file added all_binaries/py4web_osx_1.20201206.1.zip
Binary file not shown.
Binary file added all_binaries/py4web_win_1.20201206.1.zip
Binary file not shown.

0 comments on commit f451307

Please sign in to comment.