How to use py2exe ...

Mike Driscoll kyosohma at gmail.com
Mon Jan 21 15:17:45 CET 2008


On Jan 21, 1:45 am, Santiago  Romero <srom... at gmail.com> wrote:
>  Hi...
>
>  I'm a Linux user, and I would like some windows-friends to test a
> game I'm writing with python+pygame without they needing to install
> python, pygame, and so on.
>
>  I've heard about py2exe and pygame2exe, but I'm not sure on how to
> use them to create:
>
> a.- standalone exe files with a single .py program.
> Example: myprogram.py
>
> or
>
> b.- exe files containing all my source code + data directories (png
> files, data files, and so).
> Example: main.py, doc/README, src/*.py and data/*
>
>  The problem is I'm not sure on how to use py2exe and pygame2exe to
> build the executables...
>
>  And finally, a question: if I want to provide source code
> separately ... can I include .pyc files instead of .py files?

You should also check out the py2exe website as it has a tutorial, a
link to their mailing list, etc:

http://www.py2exe.org/

Mike



More information about the Python-list mailing list