Hello everybody!! I know that the topic "compiling python script" is a very popular topic, and there are informations about it everywhere on the net.
I use windows and want to make a .exe-executable
My problem: Everything I found... * is to old * does not work (exe has an error, script does not have one) * pygame does not work * I have no information about how to include my image/text files in my compiled program
I have found the "pygame2exe" script, but I have no idea of how to use it? It produces an error every time i run it...
Is there any other way to distribute my python app? A special, small portable version of the python interpreter e.g.?
Py2exe will package all of your files together, although you may need to specify resources, it even bundles all of the packages python needs and the interpriter (my programs end up at about 6MB after packaging).
cobralf, I was facing the exact same issues, particularly the famous font and mixer DLL errors. I realized that the pygame2exe script available at pygame.org was a few years old, so I gave it a shot and uninstalled python 2.6, and reloaded with the versions listed below. After that, it worked like a charm! You still have to copy all your images, etc. to the dist folder, though. Maybe someday we'll have a more civilized and robust wizard for this, but everyone is too busy tinkering with their game scripts!