Created
January 21, 2018 22:41
-
-
Save vitasiku/288cbe9afeba434f3f66e0bd5d2bd1d4 to your computer and use it in GitHub Desktop.
Flask app's cx_freeze's setup.py file.
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
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