[IronPython] Q: How do I compile .py files to a DLL for linking into my C# or VB program?
Martin.Maly at microsoft.com
Fri Apr 6 17:39:08 CEST 2007
There is a way to compile Python sources into a dll (there's a "pyc" sample on the codeplex website), however it will not produce a dll that is easily used from C# or VB. It is the dynamic nature of Python that makes it hard to compile into classes and methods in the same fashion as C# or VB do.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of ???
Sent: Friday, April 06, 2007 2:39 AM
To: users at lists.ironpython.com
Subject: [IronPython] Q: How do I compile .py files to a DLL for linking into my C# or VB program?
A: IronPython does not support building DLLs for a C# style of linking and calling into Python code. You can define interfaces in C#, build those into a DLL, and then implement those interfaces in Python code as well as pass the python objects that implement the interfaces to C# code.
Can Someone kindly give an example?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironpython-users