Advanced cx_Freeze - Using a setup.py File
Explore how to build Python executables using cx_Freeze by writing and modifying a setup.py file. Understand how to suppress the console window in GUI applications and create cross-platform binaries efficiently.
We'll cover the following...
We'll cover the following...
First off we need a script to use. We will use the wxPython form example from the previous chapters.
Now let’s create a setup.py file in the cx_Freeze style:
As you can see, this is a pretty simple one. We import a couple classes from cx_Freeze and pass some parameters into them. In this case, we give the setup class a name, version, description and ...