Make an *.EXE Using Python.

EricIDLE grayson-wilson at home.com
Sun Jul 8 23:52:14 EDT 2001


I just used the one off the py2exe website it is as follows.

# setup.py
from distutils.core import setup
import py2exe

setup(name="test",
scripts=["test.py"],
)

Is that bad or whats the story?
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