How do I make a DLL (.NET) written in python code (IronPython)?
3 Answers
You can probably use ironpycompiler, using examples in http://pythonhosted.org//ironpycompiler/html-en/command-line.html. It requires installations of both IronPython and of CPython (the regular Python).
1 Comment
Helge
From the documentation: IronPyCompiler is a library for compiling IronPython scripts requiring modules from the Python standard library (or third-party pure-Python modules) into a stand-alone .NET assembly (a DLL file or an executable), using pyc.py.
You can use the script at C:\Program Files\[IronPython Program Directory]\Tools\Scripts.
3 Comments
Shimmy Weitzhandler
The question is if I can compile them into portable DLLs
jcao219
You mean DLLs that can be used from C#? I don't think that's possible. I could be wrong.
Shimmy Weitzhandler
Yes, that's what I meant. but I meant it should be attached to the project, not to be called with <DllImport> or other tough way.