<div class="gmail_quote">On Wed, Jul 28, 2010 at 11:12 AM, Michael Foord <span dir="ltr">&lt;<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




  

<div bgcolor="#ffffff" text="#000000"><div class="im">
On 28/07/2010 16:04, Dave Fugate wrote:
<blockquote type="cite">
  
  
  
  <div>
  <p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">Hi
Lukas, while IronPython 2.6.x itself won’t be able to take advantage of
Silverlight 4 features as it’s built against Silverlight 3, I’d guess
your Python scripts might be able to utilize these features.  The
differences between Silverlight 3 and 4 are documented at
  <a href="http://www.silverlight.net/getstarted/overview.aspx" target="_blank">http://www.silverlight.net/getstarted/overview.aspx</a>. 
  </span></p>
  </div>
</blockquote></div>
I&#39;ve used Silverlight 4 features from IronPython 2.6.<br>
<br>
Michael</div></blockquote><div><br></div><div>Yes, Michael is right, you can use Silverlight 4 features (like RichTextBox) from IronPython 2.6. The &quot;catch&quot; is that any features in IronPython 2.6 that are specific to .NET 4.0 cannot be used in Silverlight 4; the major one is the DLR integration with C#, so C# code hosting IronPython in Silverlight can&#39;t use the &quot;dynamic&quot; keyword to make accessing variables defined in IronPython code easier.</div>

<div><br></div><div>Upgrading to IronPython 2.7 Alpha 1  for Silverlight 4 development is definitely preferred over staying on IronPython 2.6. If there are any bugs in IronPython 2.7 Alpha 1 that block you from doing this, please report them.</div>

<div><br></div><div>~Jimmy</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"><div><div class="h5">
<br>
<blockquote type="cite">
  <div>
  <p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"></span></p>
  <p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
  <div>
  <div style="border-style:solid none none;border-color:rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;border-width:1pt medium medium;padding:3pt 0in 0in">
  <p class="MsoNormal"><b><span style="font-size:10pt;color:windowtext">From:</span></b><span style="font-size:10pt;color:windowtext">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">mailto:users-bounces@lists.ironpython.com</a>]
  <b>On Behalf Of </b>Lukas Cenovsky<br>
  <b>Sent:</b> Tuesday, July 27, 2010 11:06 AM<br>
  <b>To:</b> Discussion of IronPython<br>
  <b>Subject:</b> Re: [IronPython] Building IronPython from sources</span></p>
  </div>
  </div>
  <p class="MsoNormal"> </p>
  <p class="MsoNormal">Thanks for the info Dave. However, I still smell
a catch here :-)<br>
  <br>
What means no build support for IronPython 2.6.x and Silverlight 4 -
considering the functionality? Can I use all functionality of
Silverlight 4 with Silverlight 3 based assemblies? What is a difference
between Silverlight 3 and Silverlight 4 based assemblies?<br>
  <br>
--<br>
-- Lukas<br>
  <br>
  <br>
On 27.7.2010 19:18, Dave Fugate wrote: </p>
  <p class="MsoNormal"><span style="font-size:11pt">Hi
Lukas, the deal is IronPython 2.6.x (where x&gt;0) will
  <i>run</i> against .NET 2.0 SP1, .NET 4.0, Silverlight 3, and <b>Silverlight
4</b>.  You’ll only be able to
  <i>build</i> IronPython 2.6.x against .NET 2.0 SP1, .NET 4.0, and
Silverlight 3 though.  In other words, we will not be back porting
Silverlight 4
  <i>build</i> support to the 2.6.x release series as we’re really
trying to limit 2.6.2 and later 2.6.x releases to bug fixes only.</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><span style="font-size:11pt">With
IronPython 2.7, we’ll provide .NET 4.0 and Silverlight 4 based
assemblies.  This said, we intend on continuing to provide the
capability of
  <i>building</i> IronPython 2.7 against .NET 3.5 and Silverlight 3 via
IronPython sources obtained from the DLR CodePlex source repository.
  </span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><span style="font-size:11pt">Thanks,</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><span style="font-size:11pt">Dave</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <div>
  <div style="border-style:solid none none;border-color:-moz-use-text-color;border-width:1pt medium medium;padding:3pt 0in 0in">
  <p class="MsoNormal"><b><span style="font-size:10pt;color:windowtext">From:</span></b><span style="font-size:10pt;color:windowtext">
  <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">mailto:users-bounces@lists.ironpython.com</a>]
  <b>On Behalf Of </b>Lukas Cenovsky<br>
  <b>Sent:</b> Tuesday, July 27, 2010 9:49 AM<br>
  <b>To:</b> Discussion of IronPython<br>
  <b>Subject:</b> Re: [IronPython] Building IronPython from sources</span></p>
  </div>
  </div>
  <p class="MsoNormal"> </p>
  <p class="MsoNormal">I am a little bit confused about Silverlight,
.NET and IronPython versions.<br>
  <br>
Here is a list what I think is valid, please correct me if I am wrong:</p>
  <ul style="margin-top:0in" type="disc">
    <li class="MsoNormal">IronPython 2.6.1 supports
Silverlight 3 + .NET 2 SP1</li>
    <li class="MsoNormal">IronPython 2.6.1 does not support
Silverlight 4 + .NET 2 SP1 or Silverlight 4 + .NET 4</li>
    <li class="MsoNormal">IronPython 2.7 will support
Silverlight 4 + .NET 4</li>
  </ul>
  <p class="MsoNormal"><br>
What will IronPython 2.6.2 support?<br>
  <br>
--<br>
-- Lukas<br>
  <br>
  <br>
On 27.7.2010 17:31, Dave Fugate wrote: </p>
  <p class="MsoNormal"><span style="font-size:11pt">I’d
actually suggest doing this with 2.7 Alpha 1 sources... 
  </span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><b><span style="font-size:11pt;color:rgb(31, 73, 125)">Building</span></b><span style="font-size:11pt"> 2.<i>6.1</i>
requires a Silverlight
  <i>3.</i>x installation as there were changes to System.Core (e.g.,
System.Func) between Silverlight 3.x and Silverlight 4.x.  As you’ve
discovered, we implemented some of this missing System.Core
functionality ourselves in 2.6.1 which is confusing the compiler when
there’s references to both (4.x) System.Core and MS.Scripting.Utils. 
If you can’t get your hands on a Silverlight 3.x installation to fix
this, the next easiest route IMO would be to use 2.7A1 instead.</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <div>
  <div style="border-style:solid none none;border-color:-moz-use-text-color;border-width:1pt medium medium;padding:3pt 0in 0in">
  <p class="MsoNormal"><b><span style="font-size:10pt;color:windowtext">From:</span></b><span style="font-size:10pt;color:windowtext">
  <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">mailto:users-bounces@lists.ironpython.com</a>]
  <b>On Behalf Of </b>Lukas Cenovsky<br>
  <b>Sent:</b> Tuesday, July 27, 2010 8:09 AM<br>
  <b>To:</b> Discussion of IronPython<br>
  <b>Subject:</b> Re: [IronPython] Building IronPython from sources</span></p>
  </div>
  </div>
  <p class="MsoNormal"> </p>
  <p class="MsoNormal">Thanks. Copying my current Silverlight version
4.0.50524.0 to 3.0.50106.0 helped and Microsoft.Scripting.dll compiles
fine. Now I get many following errors  for Microsoft.Dynamic.dll:<br>
  <br>
  <tt><span style="font-size:10pt">Error    1    &#39;Func&#39; is an
ambiguous reference between &#39;System.Func&lt;T0,T1,T2,T3,T4,TRet&gt;&#39;
and &#39;Microsoft.Scripting.Utils.Func&lt;T0,T1,T2,T3,T4,TRet&gt;&#39;   
C:\IronPython-2.6.1\Src\Runtime\Microsoft.Dynamic\Interpreter\Instructions\CallInstruction.Generated.cs   

278    70    Microsoft.Dynamic</span></tt><span style="font-size:10pt;font-family:&quot;Courier New&quot;"><br>
  </span><br>
How can I tell Visual Studio to use reference from
Microsoft.Scripting.Utils? Thanks.<br>
  <br>
--<br>
-- Lukas<br>
  <br>
  <br>
On 26.7.2010 18:21, Dave Fugate wrote: </p>
  <p class="MsoNormal"><span style="font-size:11pt">Hi
Lukas, the error message below is because you don’t have the version of
Silverlight installed which was used to build IronPython 2.6.1.  For
this particular release, I believe it was something like
“%ProgramFiles%\Microsoft Silverlight\3.0.40624.0”.  You can find out
for sure by examining the “&lt;Silverlight3Path&gt;” element in
Src\IronPython\IronPython.csproj.  Any ways, there are two workarounds:</span></p>
  <p><span style="font-size:11pt">Replace
all instances of “3.0.40624.0” throughout all C# project files with the
version of Silverlight you have installed locally</span></p>
  <p><span style="font-size:11pt">Copy and
rename the version of Silverlight you have installed to whatever is
expected by the C# project files</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><span style="font-size:11pt">Hope
that helps,</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <p class="MsoNormal"><span style="font-size:11pt">Dave</span></p>
  <p class="MsoNormal"><span style="font-size:11pt"> </span></p>
  <div>
  <div style="border-style:solid none none;border-color:-moz-use-text-color;border-width:1pt medium medium;padding:3pt 0in 0in">
  <p class="MsoNormal"><b><span style="font-size:10pt;color:windowtext">From:</span></b><span style="font-size:10pt;color:windowtext">
  <a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>
[<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">mailto:users-bounces@lists.ironpython.com</a>]
  <b>On Behalf Of </b>Lukas Cenovsky<br>
  <b>Sent:</b> Friday, July 23, 2010 12:37 PM<br>
  <b>To:</b> Discussion of IronPython<br>
  <b>Subject:</b> [IronPython] Building IronPython from sources</span></p>
  </div>
  </div>
  <p class="MsoNormal"> </p>
  <p class="MsoNormal">Hi all,<br>
I have one wish for the next release of IronPython 2.6.2 (hope it is
not too late...) - please make sure it is possible to build IronPython
binaries from sources. I have downloaded
  <span><span style="font-size:10pt;color:rgb(48, 51, 45)"><a href="http://ironpython.codeplex.com/releases/view/36280#DownloadId=116512" target="_blank">IronPython-2.6.1-Src-Net20SP1.zip</a></span></span>
and I there is no way for me to build Silverlight binaries from it... <br>
  <br>
I have opened the solution in VS 2010, solution file was converted to
the new version, I selected &#39;Silverlight Debug&#39; as a solution
configuration and I received meny errors as below when building
Microsoft.Scripting.dll:<br>
  <br>
  <tt><span style="font-size:10pt">Error    11    The type
&#39;System.SerializableAttribute&#39; exists in both
&#39;c:\IronPython-2.6.1\Bin\Silverlight
Debug\Microsoft.Scripting.Core.dll&#39; and
&#39;c:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll&#39;   
C:\IronPython-2.6.1\Src\Runtime\Microsoft.Scripting\ArgumentTypeException.cs   

20    6    Microsoft.Scripting</span></tt><span style="font-size:10pt"><br>
  </span><tt><span style="font-size:10pt">Error    12    The type or
namespace name &#39;Serializable&#39; could not be found (are you missing a
using directive or an assembly reference?)   
C:\IronPython-2.6.1\Src\Runtime\Microsoft.Scripting\ArgumentTypeException.cs   

20    6    Microsoft.Scripting</span></tt><span style="font-size:10pt"><br>
  </span><br>
My goal was to build debug-able Microsoft.Scripting.Silverlight.dll
because I&#39;m receiving AddReference error which I&#39;d like to inspect.<br>
  <br>
--<br>
-- Lukas</p>
  <pre> </pre>
  <pre>_______________________________________________</pre>
  <pre>Users mailing list</pre>
  <pre><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a></pre>
  <pre><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></pre>
  <p class="MsoNormal"> </p>
  <pre> </pre>
  <pre> </pre>
  <pre>_______________________________________________</pre>
  <pre>Users mailing list</pre>
  <pre><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a></pre>
  <pre><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></pre>
  <p class="MsoNormal"> </p>
  <pre> </pre>
  <pre> </pre>
  <pre>_______________________________________________</pre>
  <pre>Users mailing list</pre>
  <pre><a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a></pre>
  <pre><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></pre>
  <p class="MsoNormal"> </p>
  </div>
  <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
  </pre>
</blockquote>
<br>
<br>
</div></div><font color="#888888"><pre cols="72">-- 
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a></pre>
</font></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>