Make sure that you yourself have Python
installed, and that you know which version you have installed
python -vwill tell you).
- Visit http://www.py2exe.org/ to get an overview of what Py2exe does.
- Head over to the SourceForge and download the version of Py2exe which matches your version of Python
- Install Py2exe
- Look though the code samples to find something which matches what you need to do
- And do it!
Suppose you want to distibute my solution to the
8 Queens puzzle.
You need to create a file called
setup.py which looks like:
from distutils.core import setup import py2exe setup ( version = "1.0", name = "N Queens puzzle solver", console = ["queens.py"] )
python setup.py py2exe
The executable and DLLs appear in the
dist subdirectory of your
current working directory.