Cowz home


Posted on 2005/08/31 05:08

I'm going to show my inexperience here, but I think it's a question a lot of people will have when it comes down to time to submit. How does one package up a game, outside of a tarball/zip?

I understand that freeze, py2exe and py2app exist but the documentation is pretty sparse and limited to very simple examples. Any help anyone could provide would be greatly appreciated. I'll even RTFM if the FM is a little more verbose that the terse examples on the Starship Python site.

Add comment
Comment by Julien on 2005-08-31 13:10

Personnaly my experience to package python stuff is with py2exe but since my experience in python is only a month old, maybe someone can give you better advise. first read the documentation about distutils :
then read the documentation on the py2exe

Then I save you some time if you are using pyXML. Use the py2exe like this : py2exe --packages encodings --includes xml.sax.drivers2.drv_pyexpat

Also since you must probably use pygame right now copy the fonts you are using (default in pygame is freesansbold.ttf) in the folder of your project and access them there( if anyone got a better solution tell me). them you can strip the *.pyd that your game is not using. Zip the folder and voila! don't forget to provide the sources for the collectivity it's always nice.

-Computer games don't affect kids, I mean if Pac Man affected us as kids, we'd all be running around in darkened rooms, munching pills and listening to repetitive music.