Build .NET DLLs from Python code?
How do I make 开发者_如何学编程a DLL (.NET) written in python code (IronPython)?
You cannot create a standard .NET .dll from IronPython code (.dll that can be used directly from C# or VB).
pyc.py
produces .dll that can be used only by IronPython - check such .dll with Reflector and you will understand why.
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).
You can use the script at C:\Program Files\[IronPython Program Directory]\Tools\Scripts
.
精彩评论