[IronPython] What happened to InitializeModule() in IP 2.7?

Ken MacDonald drken567 at gmail.com
Tue Oct 12 19:52:24 CEST 2010


Thanks Dino,
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?

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?

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.
Ken

On Tue, Oct 12, 2010 at 1:30 PM, Dino Viehland <dinov at microsoft.com> wrote:

>  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.
>
>
>
> *From:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *On Behalf Of *Ken MacDonald
> *Sent:* Tuesday, October 12, 2010 8:44 AM
> *To:* Discussion of IronPython
> *Subject:* [IronPython] What happened to InitializeModule() in IP 2.7?
>
>
>
> Hi,
> 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.
>
> I used "GetMethods()" to confirm that in IP 2.6 we have:
>
> Int32* InitializeModule*(System.Reflection.Assembly, System.String,
> System.String[])
>
> 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.
>
> Anyone know if there is something else that will work, or if the method has
> been renamed, or...??????
> Thanks,
> Ken
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20101012/77d6d4b1/attachment.html>


More information about the Ironpython-users mailing list