1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| #!/usr/bin/python
# -*- coding: utf-8 -*-
# Python 3
import sys, os
from cx_Freeze import setup, Executable
path = sys.path
includes = []
excludes = []
packages = []
includefiles = [("icons/geo.png","geo.png"),("icons/about.png","about.png"),
("icons/cond.png","cond.png"),("icons/new.png","new.png"),
("icons/quit.png","quit.png"),("icons/warning.png","warning.png")]
optimize = 0
silent = True
options = {"path": path,
"includes": includes,
"excludes": excludes,
"packages": packages,
"include_files": includefiles,
"create_shared_zip": False,
"include_in_shared_zip": False,
"compressed": False,
"optimize": optimize,
"silent": silent
}
base = None
if sys.platform == "win32":
base = "Win32GUI"
cible_1 = Executable(
script="geocorrect.py",
base=base,
compress=False, # <= ne pas generer de fichier zip
copyDependentFiles=True,
appendScriptToExe=True,
appendScriptToLibrary=False, # <= ne pas generer de fichier zip
)
setup(
name="GéoCorrector",
version="1.0",
description="Corrige un bug dans la géobase d'une station totale",
author="Me",
options={"build_exe": options},
executables=[cible_1]
) |
Partager