<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Sriram Krishnan wrote:
<blockquote cite="mid4253d4e2.40f5a4f3.4de1.ffff8b35@mx.gmail.com"
type="cite">
<pre wrap="">Anthony Tarlano wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
Does anyone know how I can use IronPython to convert a .py script to
a PE (exe or dll) assembly?
</pre>
</blockquote>
<pre wrap=""><!---->
I don't think you can do that in the current version of IronPython. But I
remember Jim saying that a compiler was on the todo list
Sriram
_______________________________________________
users-ironpython.com mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users-ironpython.com@lists.ironpython.com">users-ironpython.com@lists.ironpython.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
</blockquote>
Had to download FePy 0.7.1 and the .NET framework for my XP machine,
but it *will* compile a script down to a .exe. You just have to run
the IronPythonConsole on it. I put a simple script in my
IronPython\bin directory ran, IronPythonConsole.exe on it, and ran the
resulting __main__.exe directly:<br>
<br>
<font face="Courier New, Courier, monospace">C:\downloads\fepy\IronPython-0.7.1\bin>dir<br>
Volume in drive C has no label.<br>
Volume Serial Number is 3CCB-1F43<br>
<br>
Directory of C:\downloads\fepy\IronPython-0.7.1\bin<br>
<br>
04/06/2005 12:53 PM <DIR> .<br>
04/06/2005 12:53 PM <DIR> ..<br>
04/06/2005 09:35 AM 48 hello.py<br>
04/01/2005 10:46 PM 24,576 IronMath.dll<br>
04/01/2005 10:46 PM 233,472 IronPython.dll<br>
04/01/2005 10:46 PM 16,384 IronPythonConsole.exe<br>
04/01/2005 01:07 PM 249 IronPythonConsole.exe.config<br>
5 File(s) 274,729 bytes<br>
2 Dir(s) 31,647,444,992 bytes free<br>
<br>
C:\downloads\fepy\IronPython-0.7.1\bin>type hello.py<br>
#!/usr/bin/env python<br>
<br>
<br>
print "Hello from FePy"<br>
C:\downloads\fepy\IronPython-0.7.1\bin>IronPythonConsole.exe hello.py<br>
Hello from FePy<br>
<br>
C:\downloads\fepy\IronPython-0.7.1\bin>dir<br>
Volume in drive C has no label.<br>
Volume Serial Number is 3CCB-1F43<br>
<br>
Directory of C:\downloads\fepy\IronPython-0.7.1\bin<br>
<br>
04/06/2005 12:54 PM <DIR> .<br>
04/06/2005 12:54 PM <DIR> ..<br>
04/06/2005 09:35 AM 48 hello.py<br>
04/01/2005 10:46 PM 24,576 IronMath.dll<br>
04/01/2005 10:46 PM 233,472 IronPython.dll<br>
04/01/2005 10:46 PM 16,384 IronPythonConsole.exe<br>
04/01/2005 01:07 PM 249 IronPythonConsole.exe.config<br>
04/06/2005 12:54 PM 3,584 snippets.dll<br>
04/06/2005 12:54 PM 13,824 snippets.pdb<br>
04/06/2005 12:54 PM 2,048 __main__.exe<br>
04/06/2005 12:54 PM 11,776 __main__.pdb<br>
9 File(s) 305,961 bytes<br>
2 Dir(s) 31,647,404,032 bytes free<br>
C:\downloads\fepy\IronPython-0.7.1\bin>__main__.exe<br>
Hello from FePy<br>
<br>
C:\downloads\fepy\IronPython-0.7.1\bin></font><br>
<br>
Jeremy Jones<br>
</body>
</html>