Meine derzeitge setup.py-Datei sieht wie folgt aus:
Code: Alles auswählen
# A simple setup script to create an executable using PyQt4. This also
# demonstrates the method for creating a Windows executable that does not have
# an associated console.
#
# PyQt4app.py is a very simple type of PyQt4 application
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirectory in the build
# subdirectory that contains the files needed to run the application
import sys
from files.about.info import info_app
import sys
import os
from cx_Freeze import setup, Executable
PROG_info = info_app()
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = PROG_info.dict_info["product_name"],
version = PROG_info.dict_info["product_version"],
description = PROG_info.dict_info["product_description"],
author = PROG_info.dict_info["product_author"],
executables = [Executable(script="xarphus.py",
initScript=None,
compress=True,
copyDependentFiles=False,
appendScriptToExe=False,
appendScriptToLibrary = False,
icon = "favicon.ico",
targetName = PROG_info.dict_info["exe_name"] + ".exe",
base=base)])
Code: Alles auswählen
rem *** Used to create a Python exe
rem ***** get rid of all the old files in the build folder
rd /S /Q build
rem ***** create the exe
python setup.py build
rem **** pause so we can see the exit codes
pause "done...hit a key to exit"