Easy way to make EXEs...

Premshree Pillai premshree_python at yahoo.co.in
Thu Feb 19 06:14:39 EST 2004


 --- Gerhard Kalab <kalab at gmx.net> wrote: > I also
find it convenient to add the following lines
> to setup.py
> (found in a sample somewhere):
> 
> if len(sys.argv) == 1:
>     sys.argv.append("py2exe")
> 
> That way you can simply double-click on setup.py to
> create an
> executable.
> 
> Gerhard
> 
> On 13 Feb 2004 19:14:24 -0800, billludden at msn.com
> (Bill Ludden) wrote:
> 
> >Voila!  Yeah!
> >Thank You, Lucas!
> >
> >Newbs appreciate people like you.
> >We have to search Google for hours to find a post
> that will put it on our level.
> >I can't tell you how much I appreciate the
> step-by-step.
> >Now I understand the process and the syntax.
> >
> >
> >Gracias!!!!
> >Grazie  !!!
> >Thx.!!!
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >"Lucas Raab" <pythongnome at hotmail.com> wrote in
> message
>
news:<X8iSb.1962$jH6.125 at newsread1.news.atl.earthlink.net>...
> >> "Xero Limit 126" <xerolimit126 at earthlink.net>
> wrote in message
> >>
>
news:NMDRb.28013$i4.26542 at newsread1.news.atl.earthlink.net...
> >> > Okay, I am completely new to Python, and I
> really dont understand much,
> >>  but
> >> > I was wondering how to make a python
> script/program into a standalone
> >>  .EXE?
> >> > I dont understand py2exe at all, so if someone
> could tell me or find me an
> >> > easy (For a newbie) to convert Python scripts
> to EXEs, please let me know!
> >> >
> >> > Thanks for any help!
> >> >
> >> >
> >> You should have no trouble with py2exe at all. A
> simple setup script would
> >> be:
> >> 
> >> #setup.py
> >> from distutils.core import setup
> >> import py2exe
> >> 
> >> setup(name="myfile.py",
> >>       scripts=["myfile.py"],
> >>       )
> >> 
> >> Then to compile that file, go to the command
> prompt and switch to the
> >> directory that the file is in. For example on my
> machine I would do the
> >> following:
> >> 
> >> Microsoft Windows XP [Version 5.1.2600]
> >> (C) Copyright 1985-2001 Microsoft Corp.
> >> 
> >> C:\Documents and Settings\Lucas Raab>cd
> C:\Python23
> >> 
> >> C:\Python23>python setup.py py2exe
> >> 
> >> Wait a few moments for py2exe to compile your
> script and Voilla!! you have
> >> an executable.
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list 

=====
-Premshree
[http://www.qiksearch.com/]

________________________________________________________________________
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. 
Go to: http://in.insurance.yahoo.com/licspecial/index.html




More information about the Python-list mailing list