Re: [IronPython] Building from source

2008-08-28 Thread hellosticky
rrectly. On Thu, Aug 28, 2008 at 11:15 AM, hellosticky <[EMAIL PROTECTED]> wrote: Hi, any ideas here? Should I just rebuild from source and sign with my own strong key? Thanks, _ From: hellosticky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 2:35 PM To: 'Dav

Re: [IronPython] Building from source

2008-08-28 Thread hellosticky
Hi, any ideas here? Should I just rebuild from source and sign with my own strong key? Thanks, _ From: hellosticky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 2:35 PM To: 'Dave Fugate'; 'Discussion of IronPython'; 'Curt Hagenlocher' Subj

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
under Visual Studio 2005 for a couple of release cycles. From: hellosticky [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 9:34 AM To: Dave Fugate; 'Discussion of IronPython'; 'Curt Hagenlocher' Subject: RE: [IronPython] Building from source Hi Dave, I was

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild IronPython.sln Dave From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hellosticky Sent: Wednesday, August 27, 2008 7:51 AM To: 'Curt Hagenlocher'; 'Discussion of IronPython' Subject: Re: [IronPython] Building fro

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
work to do anyway ;). On Wed, Aug 27, 2008 at 6:53 AM, hellosticky <[EMAIL PROTECTED]> wrote: Hi Michael, thanks. I'll be getting VS 2008 hopefully in a week or two. By the way, would you be able to build yours with a strong name? Thanks, > -Original Message- > From:

Re: [IronPython] Building from source

2008-08-27 Thread hellosticky
[EMAIL PROTECTED]; Discussion of IronPython > Subject: Re: [IronPython] Building from source > > hellosticky wrote: > > Hi, I downloaded the latest change set of IronPython from > CodePlex source code tab, but the SLN file doesn't load in VS > 2005, and running NMAKE it loo

[IronPython] Building from source

2008-08-26 Thread hellosticky
Hi, I downloaded the latest change set of IronPython from CodePlex source code tab, but the SLN file doesn't load in VS 2005, and running NMAKE it looks like there are C# 3.0 or 3.5 features being used. How do I build a .NET 2.0 version of IronPython from source? Thanks, __

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
in. On Tue, Aug 26, 2008 at 3:54 PM, hellosticky <[EMAIL PROTECTED]> wrote: Okay, I tried it but got a Security Exception in System.Scripting.Com.ComMetaObject.IsComObject. The permission requested was for UnmanagedCode. I'm running in partial trust so obviously I can't be givi

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
edLoader needs > tobe informed about the script and that's a python specific thing. > > -Original Message- > From: hellosticky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2008 3:46 PM > To: Srivatsn Narayanan; 'Discussion of IronPython' > Subject:

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
ay, August 26, 2008 6:57 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Loading DLL from pyc.py into ScriptEngine > > hellosticky wrote: > > Okay, I tried it but got a Security Exception in > System.Scripting.Com.ComMetaObject.IsComObject. The > permiss

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
engine.CreateScriptSourceFromString( code, SourceCodeKind.Statements ); source.Execute(scope); } } content = sb.ToString(); Thanks, > -Original Message- > From: hellosticky [

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
> > You might need to add the current folder to the path as well > before the clr.AddReference. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michael Foord > Sent: Tuesday, August 26, 2008 3:12 PM > To: [EMAIL PROTECTED]; Disc

Re: [IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
But that threw a script not found exception saying it could find the source file for test.py, so it would seem like this wants to recompile it > -Original Message- > From: hellosticky [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2008 5:52 PM > To: IronPython >

[IronPython] Loading DLL from pyc.py into ScriptEngine

2008-08-26 Thread hellosticky
Hi, I created an IronPython DLL with "ipy.exe pyc.py /out:test /target:dll test.py" which created test.dll. Now, from C#, I'd like to execute test.py from test.dll. I just opened up dlr-spec-hosting and there's a CreateScriptSourceFromStream, but I don't see that in 2.0 Beta 4 bits. Here is wh

Re: [IronPython] Subclassing then instantiating from C#

2008-08-26 Thread hellosticky
t; reference to the type at compile time the fact that it > subclasses a C# > type isn't relevant. > > Alternatively you can create a factory function (in Python) to create > instances - and call that from C#, casting the returned object to the > known type. > > Michael

Re: [IronPython] Subclassing then instantiating from C#

2008-08-26 Thread hellosticky
started a project that would allow this operation -- but I haven't been able to put any time into it recently. On Tue, Aug 26, 2008 at 11:44 AM, hellosticky <[EMAIL PROTECTED]> wrote: Hi, I have a C#.NET DLL that has an abstract class. I subclass this class in IronPython, and then bui

Re: [IronPython] Compiling into a DLL with pyc.py and then calling the class

2008-08-26 Thread hellosticky
----- From: hellosticky [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 11:22 AM To: Srivatsn Narayanan; 'Discussion of IronPython' Subject: RE: [IronPython] Compiling into a DLL with pyc.py and then calling the class Thanks to both Srivatsn and Michael, that worked! I have a few

[IronPython] Subclassing then instantiating from C#

2008-08-26 Thread hellosticky
Hi, I have a C#.NET DLL that has an abstract class. I subclass this class in IronPython, and then build a DLL using pyc.py. Now, I'd like to load this IronPython Assembly from another C# project, instantiate the class (using something like Assembly.GetType()) and call the virtual method on it.

Re: [IronPython] Compiling into a DLL with pyc.py and then calling the class

2008-08-26 Thread hellosticky
ully qualified assembly name. > > -Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of hellosticky > Sent: Tuesday, August 26, 2008 11:07 AM > To: IronPython > Subject: [IronPython] Compiling into a DLL with pyc.py and > then cal

Re: [IronPython] Two hour error in IPY implementation oftime.mktime and time.gmtime

2008-08-26 Thread hellosticky
FYI, in case you are interested in using it, I implemented the Olson Time zone database (used by Linux, Java, etc.) in the PublicDomain package: http://www.codeplex.com/PublicDomain http://www.codeproject.com/KB/dotnet/Using_time_zones_in_NET.aspx Thanks > -Original Message- > From: [EM

[IronPython] Compiling into a DLL with pyc.py and then calling the class

2008-08-26 Thread hellosticky
Hi, I'm new to IronPython. I have the following test.py: from System import * from System.Collections.Generic import * from System.Text import * from PublicDomain import * class test: def foo(self): return GlobalConstants.EarthEquatorialRadiusInKilometers PublicDomain is

Re: [IronPython] Release discrepancy

2008-08-26 Thread hellosticky
Thanks, that makes sense > -Original Message- > From: Seo Sanghyeon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 26, 2008 4:36 AM > To: [EMAIL PROTECTED]; Discussion of IronPython > Subject: Re: [IronPython] Release discrepancy > > 2008/8/26 hellosticky <[

[IronPython] Release discrepancy

2008-08-25 Thread hellosticky
Hi, I have a few questions about the latest releases for IronPython on CodePlex: If I just navigate to http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx, the current release is 1.1.2 which was release on August 8th; however, there is a 2.0 Beta 4 released on August 5th. 1. Is 1.1.

Re: [IronPython] Re strict imports

2008-08-23 Thread hellosticky
For the second discussion (004740.html), it wasn't discussed, but the user could have followed the Second Life approach to gauging/pausing/resuming execution [1]. From the Second Life blog [2]: "The other difficulty with Second Life scripts is that they can migrate between simulators while the