diff --git a/README.md b/README.md index 08055e7..951599e 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/README_mac.md b/README_mac.md index 345d1b2..10238c2 100644 --- a/README_mac.md +++ b/README_mac.md @@ -1,12 +1,13 @@ ## 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: @@ -14,3 +15,11 @@ 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 + + diff --git a/README_win.md b/README_win.md index c54702a..257fec8 100644 --- a/README_win.md +++ b/README_win.md @@ -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 @@ -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 \ No newline at end of file diff --git a/all_binaries/py4web_osx_1.20201206.1.zip b/all_binaries/py4web_osx_1.20201206.1.zip new file mode 100644 index 0000000..f8fc492 Binary files /dev/null and b/all_binaries/py4web_osx_1.20201206.1.zip differ diff --git a/all_binaries/py4web_win_1.20201206.1.zip b/all_binaries/py4web_win_1.20201206.1.zip new file mode 100644 index 0000000..aec8953 Binary files /dev/null and b/all_binaries/py4web_win_1.20201206.1.zip differ