Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-05 Thread Slide
It would require some additional features be implemented in .NET core to support it. On Thu, Apr 5, 2018 at 9:23 AM Josiah Kiehl wrote: > Got it. Thanks for the answers. I'll hang on to this work for future when > compile module works in .net core. Is that an eventual plan? > > On Thu, Apr 5, 20

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-05 Thread Josiah Kiehl
Got it. Thanks for the answers. I'll hang on to this work for future when compile module works in .net core. Is that an eventual plan? On Thu, Apr 5, 2018, 6:45 AM Stéphane Lozier wrote: > It sounds like you were already doing what I was suggesting trying. The > "full framework" version is what

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-05 Thread Stéphane Lozier
It sounds like you were already doing what I was suggesting trying. The "full framework" version is what you get when you install using the MSI. The zip file in releases link contains the .NET Core version of the interpreter but like I said it doesn't support CompileModule. I think you may be out

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-04 Thread Josiah Kiehl
Oh! I understand now, thanks for clarifying. Yes, that's the problem. You mentioned that there is a "full framework" version I could compile my dlls with? I poked around the releases and I wasn't sure what you were referencing, specifically. I installed via the 2.7.8 msi from here: https://github.

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-04 Thread Stéphane Lozier
I assumed you were using .NET Core when you said you were using dotnet 2.0.3. So you are compiling using ipy.exe (which is a .NET 4.5 app) and then using the assembly from a .NET Core 2.0 application? The .NET Core API doesn't expose System.Runtime.CompilerServices.Closure so that might be the reas

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-03 Thread Josiah Kiehl
Sorry if I'm not understanding... when you say "full framework version", do you mean the stand alone executable, ipy.exe? I compiled the dll with ipy.exe running a simple script: > ipy compile.py # compile.py import clr clr.CompileModules("compiled.dll", "test.py") This works just fine. Then

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-03 Thread Stéphane Lozier
The .NET Core version of IronPython does not support assembly generation. I haven't tried it myself, but you could probably compile the assembly using the full framework version and then run it with .NET Core 2.0 (assuming you're not using unsupported APIs). Stéphane On Tue, Apr 3, 2018, 5:16 PM

Re: [Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-03 Thread Josiah Kiehl
Oh, I'm on dotnet 2.0.3, if that's relevant information. On Tue, Apr 3, 2018 at 2:15 PM Josiah Kiehl wrote: > I'm trying to execute this example code: > > https://stackoverflow.com/questions/32639893/call-dll-function-from-c-sharp-ironpython > > I realize the posted question is a few years old a

[Ironpython-users] Loading python compiled with clr.CompileModule

2018-04-03 Thread Josiah Kiehl
I'm trying to execute this example code: https://stackoverflow.com/questions/32639893/call-dll-function-from-c-sharp-ironpython I realize the posted question is a few years old at this point... has something changed in how python, compiled to a DLL via clr.CompileModule, is loaded? I'm getting th