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
| # -*- coding: utf-8 -*-
# source d'inspiration: http://wiki.wxpython.org/cx_freeze
import sys, os
from cx_Freeze import setup, Executable
#############################################################################
# preparation des options
#path = sys.path.append(os.path.join("..", "..", "biblio"))
includes = ["re", "pptx", "Tkinter", "tkFileDialog", "tkMessageBox", "lxml", "lxml._elementpath", "lxml.etree",\
"gzip", "encodings.cp949", "encodings.utf_8", "encodings.ascii", "PIL", "zlib"]
excludes = []
packages = ["pptx", "PIL"]
zip_includes = [("C:/Users/Aegim/Dropbox/Moi/Programmation/Python/00_Compilation/templates/default.pptx",\
"pptx/templates/default.pptx")]
includefiles = ["PIL", "pptx", "KaemmererLogo.gif", "IcoKAG.ico", "modell_211.gif", "modell_111.gif", "titel_111.gif", "titel_211.gif", "Funktion_pdf.py"]
# "path": path,
buildOptions = {"includes": includes,
"excludes": excludes,
"packages": packages,
"zip_includes": zip_includes,
"include_files":includefiles
}
#############################################################################
# preparation des cibles
base = None
if sys.platform == "win32":
base = "Win32GUI"
if sys.platform == "win32":
buildOptions["include_msvcr"] = True
cible_1 = Executable(
script = "pdf2pptx_01-2.py",
base = base,
compress = True,
icon = None,
)
#############################################################################
# creation du setup
setup(
name = "pdf2pptx_01",
version = "1.2",
description = "pdf2pptx_01",
author = "Aegim",
options = {"build_exe": buildOptions},
executables = [cible_1]
) |
Partager