How to build exe file of multipage dash app

Hi @andrereisantunes,

To solve this, you simply need to include 'include_files': ['pages/'] into the build_exe option dict. For your example, here’s working code.

from setuptools import find_packages
from cx_Freeze import setup, Executable

options = {
    'build_exe': {
        'include_files': ['pages/'],
        'includes': [
            'cx_Logging', 'idna'
        ],
        'packages': [
            'asyncio', 'flask', 'jinja', 'dash', 'plotly', 'waitress'
        ]
    }
}

executables = [
    Executable(
        'app.py',
        base='console',
        targetName='app_executable.exe'
    )
]

setup(
    name='TEST_APP',
    packages=find_packages(),
    version='0.0.1',
    description='app_executable',
    executables=executables,
    options=options,
)


1 Like