Can I compile an IronPython code to EXE or DLL in a .NET runtime?
Simply use clr.CompileModules
in an IronPython script to convert it to a dll file.
Or you can use pyc.py
(found inside of your IronPythonInstallDirectory\Tools\Scripts
) which can also generate an exe for you also.
If I really, really needed that I would create a wrapper DLL/EXE in another language. The Python code can then be stored as a resource in the DLL that is loaded when the assembly is first accessed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With