py2exe and a single exe file? -- Oops
Mike
prema at prema.co.nz
Sat Sep 28 14:08:18 EDT 2002
This time !!!
:-)
from distutils.core import setup
import sys, os, py2exe
name = sys.argv[1]
sys.argv[1] = 'py2exe'
sys.path.append(os.path.dirname(os.path.abspath(name)))
setup(name=name[:-3], scripts=[name])
Stephen Boulet wrote:
> I'm trying to get py2exe to work for me, and I must be doing something
> wrong.
>
> I have a script that uses easygui (which uses Tkinter) and Numeric. It
> also imports a small module from the same directory that the script
> resides in.
>
> I try building it like this:
>
> python setup.py py2exe -d N:\ -i easygui
>
> It builds and runs, but only with the other stuff in the build directory
> with the generaged exe. The other stuff is:
>
> tcl directory containing tcl8.3 and tk8.3 directories
> _numpy.pyd
> _sre.pyd
> _tkinter.pyd
> multiarray.pyd
> umath.pyd
>
> What I would like to accomplish is just having a single exe file lumping
> everything together. Is this possible?
>
> -- Stephen
>
More information about the Python-list
mailing list