Cool. Seems to work fine w/ the DLL's from GAC_MSIL\IronP\...... the method shows up and the .exe seems to build just fine.<br><br>I'm using a version of pyc.py based on the 2.7 pyc.py. I've modified it so that can build all of the standard library source modules needed into the application dll, so that you do not need to have the IP standard library on your target system, just the stub .exe, application .dll and the IronPython DLL's. I'll post it at some point after I tune it up a bit; it's a very nice enhancement to the vanilla pyc.py.<br>
Ken<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 2:01 PM, Dino Viehland <span dir="ltr"><<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Ahh, yes, in 2.7 we switched to installing the binaries into the GAC so they won’t be in C:\Program Files anymore. Instead they should be in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\IronPython\...</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Also, are you using the 2.7 PYC w/ 2.7 or are you using the 2.6 PYC? I’m not sure it’ll make a difference but it’s probably best to use the 2.7 PYC if you’re
not.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>On Behalf Of </b>Ken MacDonald<br>
<b>Sent:</b> Tuesday, October 12, 2010 10:52 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] What happened to InitializeModule() in IP 2.7?</span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">Thanks Dino,<br>
OK, after installing my IP 2.7, the only IP .dll's are in c:\program files\ironpython 2.7\Silverlight\bin\*.dll. Are these the "Silverlight builds" you mentioned? If so, how would I get the standard builds?<br>
<br>
I noticed that in my 2.6 installation, the dll's are in c:\program files\Ironpython 2.6\*.dll, they are NOT in a Silverlight directory. Maybe this is the problem?<br>
<br>
In any case, the stub application .exe (leftover from a 2.6 build, perhaps?) seems to startup the 2.7 application .dll just fine, but would like to have the whole build process working properly if possible.<br>
Ken</p>
<div>
<p class="MsoNormal">On Tue, Oct 12, 2010 at 1:30 PM, Dino Viehland <<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>> wrote:</p>
<div>
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">It should still be there at least I still see it in the sources. It’s not defined for Silverlight builds (I’m not sure if that’s a
change or not). One thing to be careful of is that 2.6 and 2.7 do have different .NET assembly versions so they will be treated as different types. In other words you need to re-build a 2.6 pre-compiled app to work against 2.7.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; padding: 0in 0in 0in 4pt; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue;">
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-color: -moz-use-text-color;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>]
<b>On Behalf Of </b>Ken MacDonald<br>
<b>Sent:</b> Tuesday, October 12, 2010 8:44 AM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> [IronPython] What happened to InitializeModule() in IP 2.7?</span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi,<br>
I'm running the pyc.py IronPython compiler. In the GenerateExe method, there is a call to ....GetMethod("InitializeModule"). This method was available in IP 2.6 but seems to have disappeared in IP 2.7.<br>
<br>
I used "GetMethods()" to confirm that in IP 2.6 we have:<br>
<br>
Int32<b> InitializeModule</b>(System.Reflection.Assembly, System.String, System.String[])<br>
<br>
but if I run in IP 2.7, the method is non-existent. This causes the GenerateExe method to fail, and the stub .exe file is not created. Fortunately, the old stub module .exe still works with the new .dll created.<br>
<br>
Anyone know if there is something else that will work, or if the method has been renamed, or...??????<br>
Thanks,<br>
Ken</p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></p>
</div>
<p class="MsoNormal"> </p>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>