The py2exe setup.py file
Discover how to create Windows executable files from Python applications using the py2exe setup.py script. Learn to configure your setup file, run py2exe from the command line, and troubleshoot common problems like missing DLLs. This lesson helps you understand packaging Python programs for Windows distribution with practical tips.
We'll cover the following...
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:
As you can see, we import the setup method from distutils.core and then we import py2exe. ...