You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code obviously won't run when installing from git directly, which means the zip assets are missing.
pip install git+https://github.com/web2py/py4web
This is useful for testing forks or latest unreleased changes in a project original set up with the pypi version of py4web.
I propose instead writing a setup.py file which includes a custom build step, and using this to create the zip files required for full functionality. This discussion comment shows how this would work with setuptools. Essentially, the setup.py can change the build command to a subclass which behaves the exact same as the normal setuptools build but calls a custom Command subclass first. This custom Command would then create the required assets using python code. This also means using zipfile module instead of zip command, to make sure it works the same on all OS (another downside of Makefiles).
The text was updated successfully, but these errors were encountered:
Currently, the Makefile creates the .zip archives of the apps used by
py4web setup
py4web/Makefile
Lines 13 to 16 in 4844577
The above code obviously won't run when installing from git directly, which means the zip assets are missing.
This is useful for testing forks or latest unreleased changes in a project original set up with the pypi version of py4web.
I propose instead writing a
setup.py
file which includes a custom build step, and using this to create the zip files required for full functionality.This discussion comment shows how this would work with setuptools. Essentially, the
setup.py
can change the build command to a subclass which behaves the exact same as the normal setuptools build but calls a custom Command subclass first. This custom Command would then create the required assets using python code. This also means usingzipfile
module instead ofzip
command, to make sure it works the same on all OS (another downside of Makefiles).The text was updated successfully, but these errors were encountered: