module py2exe

Thomas Heller theller at python.net
Mon Jun 24 09:06:59 EDT 2002


<jubafre at zipmail.com.br> wrote in message news:mailman.1024919252.19619.python-list at python.org...
> i don´t know how to use a py2exe module, i have made the download but i
> don´t know to install. the direcroty of installation is lib\site-packages.
>
> i have a program using tkinter module and i want to compile to .exe the
> name of the file is lfa.py, i read in http://starship.python.net/crew/theller/py2exe/,
> i have to make a setup.py, so doesn´t work, how i can make this rigth???????????????????
>
> # setup.py
> from distutils.core import setup
> import py2exe
>
> setup(name="lfa",
>       scripts=["lfa.py"],
> )
>
> Juliano Freitas
> www.gebrasil.hpg.com.br
This looks good.
All you now have to do is to create the exe-file by running
'python setup.py py2exe'. If all is well, you can find your program
(together with other files it needs) in the subdirectory dist\lfa.

HTH,

Thomas





More information about the Python-list mailing list