Creating an Advanced setup.py File
We'll cover the following...
We'll cover the following...
Let’s see what other options py2exe gives us for creating binaries by creating a more complex setup.py file.
This is pretty self-explanatory, but let’s unpack it anyway. First we set up a few lists that we pass to the options parameter of the setup function.
...
- The includes list is for special modules that you need to specifically include. Sometimes py2exe can’t find certain modules, so you get to manually specify them here.
- The excludes list is a list of which modules to exclude from your program. In this case, we don’t need Tkinter since we’re using