Created
October 7, 2017 13:20
-
-
Save mrf345/df900b93245ae60b2dae8e36d4d1f191 to your computer and use it in GitHub Desktop.
Building one-file executable for Python Flask using Pyinstaller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pyinstaller -F -w \ | |
--hidden-import='email.mime.multipart' \ | |
--hidden-import='email.mime.message' \ | |
--hidden-import='email.mime.text' \ | |
--hidden-import='email.mime.image' \ | |
--hidden-import='email.mime.audio' \ | |
--hidden-import='sqlalchemy.sql.default_comparator' \ | |
--hidden-import='jinja2' \ | |
main.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment