[IronPython] Compiling with Pyc for Silverlight
fuzzyman at voidspace.org.uk
Mon Apr 20 21:43:15 CEST 2009
Dino Viehland wrote:
> In theory there's just 1 IL re-write that's required for this to work. And that should be replacing the references to mscorlib/IronPython to point at the Silverlight versions. There's no way to directly have the written binaries target Silverlight because Reflection Emit has no cross-compilation support :(.
I need to rewrite references to the IronPython / DLR assemblies to use
the Silverlight versions and the same for mscorlib.
Any pointers as to how I should start?
> Do you know what's happening when trying to import packages?
at app.py in app.py, line 7 ? SystemError: Could not load type
'Microsoft.Runtime.CompilerServices.StrongBox`1' from assembly
'Microsoft.Scripting.Core, Version=22.214.171.124, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'. ? Hide
>> -----Original Message-----
>> From: users-bounces at lists.ironpython.com [mailto:users-
>> bounces at lists.ironpython.com] On Behalf Of Michael Foord
>> Sent: Monday, April 20, 2009 3:34 AM
>> To: Discussion of IronPython
>> Subject: [IronPython] Compiling with Pyc for Silverlight
>> Hello guys,
>> I'd like to modify Pyc to work with Silverlight. I tried it with simple
>> modules and it works straightforwardly - but I have a report that it
>> doesn't work with packages.
>> I'll try it - but if anyone has any idea of how to modify the bytecode
>> generation to target the CoreCLR it would be appreciated. As far as I
>> can tell from looking at the source it isn't adding any direct
>> references to the desktop assemblies. Any clues as to what changes I
>> should make? (Other than running from Silverlight and serializing the
>> generated assemblies from memory to base64 which I would prefer to
>> Users mailing list
>> Users at lists.ironpython.com
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users