The py2exe setup.py file

We'll cover the following...

The key to any py2exe script is the setup.py file. This file controls what gets included or excluded, how much we compress and bundle, and much more! Here is the simplest setup that we can use with the wx script above:

Press + to interact
from distutils.core import setup
import py2exe
setup(windows=['sampleApp.py'])

As you can see, we import the setup method from distutils.core and then we import py2exe. ...