makeExe.py

bor borkxorfoo at hotmail.com
Tue Jan 27 21:05:13 EST 2004


I use this:

http://sourceforge.net/project/showfiles.php?group_id=91562&package_id=96755
&release_id=188884

sits on top of py2exe and is very handy for click/compile when needed.

----- Original Message -----
From: "Premshree Pillai" <premshree_python at yahoo.co.in>
To: <peter at engcorp.com>; <python-list at python.org>
Sent: Tuesday, January 27, 2004 5:48 AM
Subject: Re: makeExe.py


> > if you're interested
> > in integrating the
> > changes, and maintaining it, I'll forward our own
> > script which you can
> > pull apart and reuse as required...
>
> I'd be interested in that.
>
>
>  --- Peter Hansen <peter at engcorp.com> wrote: >
> Premshree Pillai wrote:
> > >
> > > Wrote a simple Python script that makes life a wee
> > bit
> > > easier when using py2exe:
> > >
> > > """
> > > makeExe.py
> > > - Simple Python script to automate the creation
> > >   of Python executables using py2exe.
> > >
> > [snip]
> > > fp = open("setup.py","w")
> > > temp = """from distutils.core import setup
> > > import py2exe
> > > setup(name = "%s",
> > >      scripts = ["%s"],
> > > )""" % (package,fileName)
> > > fp.write(temp)
> > > fp.close()
> >
> > You could save yourself a fair bit of trouble, and
> > avoid writing a
> > "setup.py" file to the filesystem (possibly
> > overwriting an existing
> > one which might be important) by just calling the
> > setup() method
> > directly yourself.  The only trick is that it checks
> > sys.argv[] for
> > the "py2exe" argument, so you have to fake that
> > first:
> >
> > sys.argv[1:] = ['py2exe']
> >
> > from distutils.core import setup
> > setup(name=package,
> >     scripts=[fileName])
> >
> > That should do the trick....  if you're interested
> > in integrating the
> > changes, and maintaining it, I'll forward our own
> > script which you can
> > pull apart and reuse as required...
> >
> > -Peter
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
> =====
> -Premshree
> [http://www.qiksearch.com/]
>
> ________________________________________________________________________
> Yahoo! India Mobile: Download the latest polyphonic ringtones.
> Go to http://in.mobile.yahoo.com
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>


---
As of 2nd December 2003, Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.481 / Virus Database: 277 - Release Date: 5/13/2003




More information about the Python-list mailing list