How to interface with C# without IronPython

Kay Schluehr kay.schluehr at gmx.net
Tue Mar 17 11:49:23 EDT 2009


On 17 Mrz., 16:22, Mudcat <mnati... at gmail.com> wrote:
> On Mar 17, 6:39 am, Kay Schluehr <kay.schlu... at gmx.net> wrote:
>
>
>
> > On 16 Mrz., 23:06, Mudcat <mnati... at gmail.com> wrote:
>
> > > On Mar 13, 8:37 pm, Christian Heimes <li... at cheimes.de> wrote:
>
> > > > Chris Rebert wrote:
> > > > > Haven't used it, butPythonfor .NET sounds like it might be what you
> > > > > want:http://pythonnet.sourceforge.net/
>
> > > > I've done some development for and with PythonDotNET. It's definitely
> > > > the right thing. It works with .NET, Mono andPython2.4 to 2.6.
>
> > > > Christian
>
> > > That looks exactly like what I'm searching for. I'll give it a shot.
>
> > > One question, the last update for that is back in '07. Do you know if
> > > it's still in active development?
>
> > > Thanks
>
> > Don't think it's maintained right now. But be aware that it runs well
> > for the current CLR 2.0.
>
> > For using .NET 3.5 features you just have to add
>
> > c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\
>
> > to your Python path and add assemblies with clr.AddReference as
> > convenient.
>
> Based on the archived emails I know that it can work on Python 2.6,
> but it's not clear what modifications are necessary. I downloaded the
> source files to run independently, and that was capable of running
> with installs of Python 2.4 and 2.5.

> If I download the installer will
> it automatically recognize 2.6, or will I need to change paths and
> possibly re-compile?
>
> Thanks

You'll have to change the BUILD option in the project settings of the
Python.Runtime assembly. There is already a conditional compilation
switch for Python 2.6 available in the source. So after this has been
done it will build pythonnet for Python 2.6.




More information about the Python-list mailing list