Created
January 29, 2016 17:47
-
-
Save bhaskar-c/dad2eb1e987cf481d612 to your computer and use it in GitHub Desktop.
Flask app's cx_freeze's setup.py file.
This file contains hidden or 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
from cx_Freeze import setup, Executable | |
include_files = [ 'app/templates/', | |
'app/static/',] | |
# Note: without 'jinja2.ext' in this list, we won't get the templates working. | |
include = [ 'jinja2', 'jinja2.ext',] | |
flaskapp = Executable(script="run.py", | |
base="Win32GUI", | |
targetName="mando_esp8266.exe", | |
copyDependentFiles=True, | |
icon="rocket.ico" | |
) | |
setup( | |
name="mando esp8266", | |
version="1.0", | |
author="jorge garcia", | |
description="mando esp8266", | |
options={ | |
'build_exe': { | |
'include_files': include_files, | |
'includes': include, | |
'build_exe': "build" | |
} | |
}, | |
executables=[flaskapp] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment