Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use <a href="https://github.com/IronLanguages/main/blob/master/Languages/IronPython/Public/Tools/Scripts/pyc.py" rel="noreferrer"><code>pyc.py</code></a>, the <em>Python Command-Line Compiler</em>, which is included in IronPython since version 2.6 to compile a Python script to an executable. You find it at <code>%IRONPYTONINSTALLDIR%\Tools\Scripts\pyc.py</code> on your hard disk.</p> <h2>Example</h2> <p>Let's assume you have a simple script <code>test.py</code> that just prints out something to console. You can turn this into an executable with the following command-line (assuming that the IronPython directory is the current directory and that <code>test.py</code> is in there, too):</p> <pre><code>ipy.exe Tools\Scripts\pyc.py /main:test.py /target:exe </code></pre> <p><sub>Note: If you are using forms and don't want a console window to open, you want to use <code>/target:winexe</code> instead of <code>/target:exe</code>.</sub></p> <p>The result will be two files, <code>test.dll</code> and <code>test.exe</code>. <code>test.dll</code> will contain your actual script code, while <code>test.exe</code> is just a launcher for <code>test.dll</code>. You can distribute this EXE and DLL to other computers which do not have IronPython installed if you include the files</p> <ul> <li><code>IronPython.dll</code>,</li> <li><code>Microsoft.Dynamic.dll</code>,</li> <li><code>Microsoft.Scripting.Core.dll</code>,</li> <li><code>Microsoft.Scripting.Debugging.dll</code>,</li> <li><code>Microsoft.Scripting.dll</code>,</li> <li><code>Microsoft.Scripting.ExtensionAttribute.dll</code> and</li> <li><code>IronPython.Modules.dll</code> (sometimes needed).</li> </ul> <p>Also see the blog entry <a href="http://dbaportal.eu/2009/12/21/ironpython-how-to-compile-exe/" rel="noreferrer">IronPython - how to compile exe</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload