Sriram Krishnan wrote:
Anthony Tarlano wrote:
  
Hello,

Does anyone know how I can use IronPython to convert a .py script to
a PE (exe or dll) assembly? 

    

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
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

  
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:

C:\downloads\fepy\IronPython-0.7.1\bin>dir
 Volume in drive C has no label.
 Volume Serial Number is 3CCB-1F43

 Directory of C:\downloads\fepy\IronPython-0.7.1\bin

04/06/2005  12:53 PM    <DIR>          .
04/06/2005  12:53 PM    <DIR>          ..
04/06/2005  09:35 AM                48 hello.py
04/01/2005  10:46 PM            24,576 IronMath.dll
04/01/2005  10:46 PM           233,472 IronPython.dll
04/01/2005  10:46 PM            16,384 IronPythonConsole.exe
04/01/2005  01:07 PM               249 IronPythonConsole.exe.config
               5 File(s)        274,729 bytes
               2 Dir(s)  31,647,444,992 bytes free

C:\downloads\fepy\IronPython-0.7.1\bin>type hello.py
#!/usr/bin/env python


print "Hello from FePy"
C:\downloads\fepy\IronPython-0.7.1\bin>IronPythonConsole.exe hello.py
Hello from FePy

C:\downloads\fepy\IronPython-0.7.1\bin>dir
 Volume in drive C has no label.
 Volume Serial Number is 3CCB-1F43

 Directory of C:\downloads\fepy\IronPython-0.7.1\bin

04/06/2005  12:54 PM    <DIR>          .
04/06/2005  12:54 PM    <DIR>          ..
04/06/2005  09:35 AM                48 hello.py
04/01/2005  10:46 PM            24,576 IronMath.dll
04/01/2005  10:46 PM           233,472 IronPython.dll
04/01/2005  10:46 PM            16,384 IronPythonConsole.exe
04/01/2005  01:07 PM               249 IronPythonConsole.exe.config
04/06/2005  12:54 PM             3,584 snippets.dll
04/06/2005  12:54 PM            13,824 snippets.pdb
04/06/2005  12:54 PM             2,048 __main__.exe
04/06/2005  12:54 PM            11,776 __main__.pdb
               9 File(s)        305,961 bytes
               2 Dir(s)  31,647,404,032 bytes free
C:\downloads\fepy\IronPython-0.7.1\bin>__main__.exe
Hello from FePy

C:\downloads\fepy\IronPython-0.7.1\bin>


Jeremy Jones
_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to