<div id="mb_0"><pre>for Python.NET support for .NET 2.0:<br><br>1. Download de latest source from <a href="http://pythonnet.svn.sourceforge.net/viewvc/pythonnet/trunk/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://pythonnet.svn.sourceforge.net/viewvc/pythonnet/trunk/</a><br><br><br>(you can use Tortoise SVN in win*)<br><br>2. change in  importhook.cs :<br><br>line 25 <br>static <b>Clr</b>Module clr;   with        static <b>clr</b>Module clr;
<br><br>line 50<br>clr = new <b>Clr</b>Module(&quot;clr&quot;);     with             clr = new <br><b>clr</b>Module();<br><br>line 51<br><br>Runtime.PyDict_SetItemString(dict, &quot;clr&quot;, <b>clr</b>.pyHandle); <br>with<br>Runtime.PyDict_SetItemString
(dict, &quot;clr&quot;, <b>root</b>.pyHandle);<br><br><br>line 111:<br><br>Runtime.Incref(<b>clr</b>.pyHandle);<br>with<br>Runtime.Incref(<b>root</b>.pyHandle);<br><br><br>line 112:<br>return <b><big>clr</big></b>.pyHandle;
<br>with<br>return <b>root</b>.pyHandle;<br><br><br>3. Change makefile with this:<br><br><br>ILDASM=ildasm.exe<br>ILASM=/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727/ilasm.exe<br>CSC=/c/WINDOWS/Microsoft.NET/Framework/v2.0.50727/csc.exe
<br><br>all: python.exe<br><br>python.exe: Python.Runtime.dll<br>        cd src; cd console; \<br><br>        $(CSC) -nologo -target:exe -out:../../python.exe \<br>        -reference:../../Python.Runtime.dll -recurse:*.cs<br>        cd ..; cd ..;
<br><br><br>Python.Runtime.dll:clr.dll<br>        cd src; cd runtime; \<br>        $(CSC) -nologo -unsafe -target:library -out:../../Python.Runtime.dll \<br><br>       -reference:clr.dll \<br><i>       -recurse:*.cs<br>        cd ..; cd ..;<br>
<br></i>clr.dll: <br>        $(ILASM) -nologo -dll -quiet -output=clr.dll \<br>        ./src/runtime/clrmodule.il;<br><br><br><br>4. using Mingw32 (msys) execute:<br><br>makefile<br><br><br>you get :Python.Runtime.dll, clr.dll and pyton.exe
 ready for net 2.0<br><br><br>5. put Python.Runtime.dll and crl.dll in your python24 directory.<br><br><br>6. you can get ready binaries (Python.Runtime.dll<br>, clr.dll and pyton.exe) for Net 2.0  from :<br> <a href="http://angel.ignacio.colmenares.googlepages.com/pythonnet" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://angel.ignacio.colmenares.googlepages.com/pythonnet</a><br><br>7. Some screenshots in : <a href="http://angel.ignacio.colmenares.googlepages.com/pythonnet" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
<br>http://angel.ignacio.colmenares.googlepages.com/pythonnet</a><i><a href="http://angel.ignacio.colmenares.googlepages.com/pythonnet" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><br></a></i><br>
<br></pre>angel ignacio colmenares laguado
</div>