Is it possible to link python webapp with one file for deployment?

Is it possible for pappon webapp to be linked (gzipped?) Into one file along with any necessary resources (js / css files) and modules (including modules such as lxml, which are mainly based on C), for ease of deployment to the web linux server?

+4
source share
3 answers

Yes. You can create a Windows executable using py2exe . The best way to manage your deployment is with a batch application with the setup.py , listing all the necessary dependencies and a list of non-python support files in the MANIFEST.in file. You can then pack it into a package using setup.py sdist and install it using pip . See Tarek Ziade Hitchhiking Packaging for more details.

+1
source

For standalone tasks, you can try:

OS X: py2app

For Windows py2exe .

Not sure if this applies to your "webapp".

0
source

PyInstaller is perhaps the best cross-platform packer (in the SVN trunk version: 1.3, the latest packaged version, very old and cruel - I don’t know why my friends who took over the service more than a year ago and made so many improvements continue resist my pleas to do another release already! -) - you can pack files for Windows, Linux or Mac, and this directly supports many popular third-party packages.

0
source

Source: https://habr.com/ru/post/1304461/


All Articles