its hard to generally say do this without seeing what code you want compiled.
Because it depends on what 3rd party libs you add, your programs structure for resources, whether you want all python library within the exe or separate, etc.
You dont really need that much. You write a setup.py and then just execute
Here is a setup.py example. the isSystemSLL function is there only a workaround for an issue with building pygame games. The rest of the options just says to throw everything in the exe and use the starter script called
http://www.py2exe.org/
Usually its gerenally good to start with a hello world, and then work from there because everything you add in the program usually adds some complex issue in building the exe.
Because it depends on what 3rd party libs you add, your programs structure for resources, whether you want all python library within the exe or separate, etc.
You dont really need that much. You write a setup.py and then just execute
python setup.py buildto build the exe. And it will be in the dist directory.
Here is a setup.py example. the isSystemSLL function is there only a workaround for an issue with building pygame games. The rest of the options just says to throw everything in the exe and use the starter script called
game.py
in the same directory. You should in theory be able to download my repo, delete the exe, install pygame and py2exe and rebuild the exe in this case. You can tweak the options to see what different ones do http://www.py2exe.org/
Usually its gerenally good to start with a hello world, and then work from there because everything you add in the program usually adds some complex issue in building the exe.
Recommended Tutorials: