Skip to content

Instantly share code, notes, and snippets.

@bhaskar-c
Created January 29, 2016 17:47
Show Gist options
  • Save bhaskar-c/dad2eb1e987cf481d612 to your computer and use it in GitHub Desktop.
Save bhaskar-c/dad2eb1e987cf481d612 to your computer and use it in GitHub Desktop.
Flask app's cx_freeze's setup.py file.
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