Make an *.EXE Using Python.

G. Willoughby thecalm at NOSPAM.btinternet.com
Thu Jul 19 21:00:46 CEST 2001


thanks that works great! but one more question... i have compiled my script
to an .exe BUT is there a way of getting rid of the console window. i tried:

pythonw setup.py py2exe

instead of

python setup.py py2exe

but this only copied the 'tcl' dir to the 'dist' dir! any ideas???

Gaz.

"eric_brake" <brakedon at hotmail.com> wrote in message
news:7b515e0f.0107081724.56b2a434 at posting.google.com...
> "EricIDLE" <grayson-wilson at home.com> wrote in message
news:<oAI17.647550$166.13393459 at news1.rdc1.bc.home.com>...
> > Hello,
> > I was wondering is there a way to make a exe using Python?
> > I seem to remeber vagely that there was a "Make EXE" choice under the
file
> > menu but its no longer there (If it ever was) so if you can give me a
hand
> > with this it would be great.
>
> You will need to create a "setup.py" file. Here is the working code that I
use.
>
> from distutils.core import setup
> import py2exe
> setup(name = "filename", #not sure what this does, but it doesn't hurt
anything
>       version = "1.0", #meta info, shows up in the exe you make
>       author = "John Doe", #meta info, your name
>       author_email = "johndoe at somewhere.com",#meta info, author email
>       scripts = ["yourfile.py"])#target script, the script you want to
make an
>                                 #exe with





More information about the Python-list mailing list