import sys
from IronPython.Hosting import PythonCompiler
from System.Reflection.Emit import PEFileKinds

from System.Collections.Generic import List
sources = List[str]()

for file in sys.argv[1:-1]:
    sources.Add(file)
exename = sys.argv[-1]

compiler = PythonCompiler(sources, exename)
compiler.MainFile = sys.argv[1]
compiler.TargetKind = PEFileKinds.WindowApplication
compiler.IncludeDebugInformation = False
compiler.Compile()

Joshua Kifer wrote:
> What are you using to generate the .exe?   What are you compiling
> your stuff with?
>
>
>
> On Aug 27, 2006, at 2:59 PM, [EMAIL PROTECTED] wrote:
>
> > Hello,
> >
> > I'm new to both IronPython and .NET, and I've been trying to generate
> > an exe that has a version number as well as an icon, but I can't. I've
> > spent the last 2 hours googling to no avail.
> >
> > I compile my stuff using a little script I found, which uses
> > IronPython.Hosting.PythonCompiler.
> >
> > _______________________________________________
> > users mailing list
> > [email protected]
> > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to