#!/usr/bin/env python3

import os
import re

from cx_Freeze import setup, Executable


with open(os.path.join("sacad", "__init__.py"), "rt") as f:
  version = re.search("__version__ = \"([^\"]+)\"", f.read()).group(1)

build_exe_options = {"includes": ["lxml._elementpath"],
                     "packages": ["asyncio"],
                     "optimize": 0}

setup(name="sacad",
      version=version,
      author="desbma",
      packages=["sacad"],
      options={"build_exe": build_exe_options},
      executables=[Executable(os.path.join("sacad", "__main__.py"),
                              targetName="sacad.exe"),
                   Executable(os.path.join("sacad", "recurse.py"),
                              targetName="sacad_r.exe")])

#!/usr/bin/env python3

import os
import re

from cx_Freeze import setup, Executable


with open(os.path.join("sacad", "__init__.py"), "rt") as f:
  version = re.search("__version__ = \"([^\"]+)\"", f.read()).group(1)

build_exe_options = {"includes": ["lxml._elementpath"],
                     "packages": ["asyncio", "idna"],
                     "optimize": 0}

setup(name="sacad",
      version=version,
      author="desbma",
      packages=["sacad"],
      options={"build_exe": build_exe_options},
      executables=[Executable(os.path.join("sacad", "__main__.py"),
                              targetName="sacad.exe"),
                   Executable(os.path.join("sacad", "recurse.py"),
                              targetName="sacad_r.exe")])

Fix Windows freeze error