compilation - Ironpython 2.6 .py -> .exe -


I have already tried to use py2exe (not compatible with ipy) and pvc (from old time) . Can anyone tell me in the direction of a good compiler?

You can use, the Python command-line compiler , which version 3.1 has been included in IronPython so that an executable python script can be compiled. You can find it on your hard disk at % IRONPYTONINSTALLDIR% \ Tools \ script \ pyc.py .

Example

Assume that you have a simple script test.py which prints something out of the console for you to command it with a command line Executable (assuming that the IronPython directory is the current directory and that is also test.py ):

  ipy.exe tool \ script \ Pyc.py /main:test.py/ target: exe  

Note: If you are using the form and do not want the console to open the window, The / target: winexe instead of / target: Want to use the exe .

Click the result for two files, test.dll and test.exe . test.dll will include your actual script code, while test.exe is only a launcher for test.dll . You can distribute this EXE and DLL to other computers, which do not have IorPathon installed if you include the file

  • IronPython.dll ,
  • Microsoft.Dynamic.dll ,
  • Microsoft.Scripting.Core.dll ,
  • Microsoft. Scripting.Debugging Dll ,
  • Microsoft.Scripting.dll ,
  • Microsoft.Scripting.ExtensionAttribute.dll and
  • IronPython.Modules.dll (sometimes required).

See also the blog entry


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -