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.
Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ??? Sent: Friday, April 06, 2007 2:39 AM To: users@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. iap
_______________________________________________ users mailing list users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com