[IronPython] Compiling with Pyc for Silverlight
fuzzyman at voidspace.org.uk
Mon Apr 20 17:22:54 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 :(.
So I need to rewrite the IL after Pyc has generated it. OK - if I need
help with that I'll come back.
> Do you know what's happening when trying to import packages?
I still need to try it myself.
All the best,
>> -----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