Requirements:
This will generate a dll and an exe for MyProgram in the deploy folder.
If you try to run MyProgram.exe and you're importing libraries like os, you may get a No module named ....
Since, I'm using os, I get this error:
If you run "MyProgram.exe" and you're using standard libraries, you might get No module named... errors.
In my case, I got:
Unhandled Exception: IronPython.Runtime.Exceptions.ImportException: No module na med os
...
To fix this issue, copy Lib folder from C:\Program Files (x86)\IronPython 2.7.1\ to the deploy folder you just created. Then, before you import the libraries which are throwing errors, modify MyProgram.py like this:
import sys
sys.path.append("Lib")
# Followed by library imports that were causing you trouble:
import os
As a last step, copy the following files from C:\Program Files (x86)\IronPython 2.7.1\ to deploy folder as well:
-IronPython.dll
-IronPython.Modules.dll
-Microsoft.Dynamic.dll
-Microsoft.Scripting.dll
Now you can zip up your deploy folder and and ship it!