import sys
from cx_Freeze import setup, Executable

name = "amap"
version = "0.33"
description = "AMAP - Des produits locaux et de saison"
author = "olivier.massot[at]bas-rhin.fr"

includefiles = []
includes = []
excludes = []
packages = []
optimize = 1
silent = False
icon = r".\rsc\amap.ico"

# construction du dictionnaire des options
options = {"path": sys.path,
           "includes": includes,
           "excludes": excludes,
           "packages": packages,
           "include_files": includefiles,
           "optimize": optimize,
           "silent": silent
           }

# pour inclure sous Windows les dll system de Windows necessaires
if sys.platform == "win32":
    options["include_msvcr"] = True

target = Executable(
    script="amap.py",
    base=None,
    icon=icon
    )

setup(
    name=name,
    version=version,
    description=description,
    author=author,
    options={"build_exe": options},
    executables=[target]
    )




