python - Freeze an app with flask and flask-logging via cx_freeze -
i have app flask , flask-logging have been wanting turn windows executable cx_freeze, whenever try freeze it, , run resulting executable, missing flask.ext.logging flask-logging.
setup.py
from cx_freeze import setup, executable # dependencies automatically detected, might need # fine tuning. buildoptions = dict(packages = ["flask", "psutil"], excludes = []) base = 'console' executables = [ executable('app.py', base=base, targetname = 'test.exe') ] setup(name='flaskexample', version = '0.5', description = 'example flask app', options = dict(build_exe = buildoptions), executables = executables) i have tried specifying flask.ext.logging in packages, still doesn't work. have missed?
flask.ext deprecated technique migrating older flask applications. correct way import flask extensions import them directly.
from flask_logging import filter flask.ext clever examination of path @ runtime, cx_freeze doesn't expect.
Comments
Post a Comment