<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I thinks I got it. </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">ipy.exe pyc.py /target:dll cycle.py </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">would create cycle.dll</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Bob Rosembob &lt;brosembob@yahoo.com&gt;<BR>To: Discussion of IronPython &lt;users@lists.ironpython.com&gt;<BR>Sent: Tuesday, July 1, 2008 2:29:12 PM<BR>Subject: Re: [IronPython] Another deployment question...<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Michael, thanks for your help.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">I looked at the documentation and tried to&nbsp;follow the directions but I got something different then what I expected.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Here what I did:</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">1. Copied IronPython and IronMath dlls and ipy.exe into the directory where my script is</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">2. Started command prompt and changed the directory</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">3. Typed the following</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">ipy.exe <A href="http://cycle.py/" target=_blank>cycle.py</A> /target:cycle.dll</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">It executed the script but didn't create cycle.dll. I guess I'm missing something.</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Please advise,</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Bob</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR>&nbsp;</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Michael Foord &lt;fuzzyman@voidspace.org.uk&gt;<BR>To: Discussion of IronPython &lt;users@lists.ironpython.com&gt;<BR>Sent: Tuesday, July 1, 2008 10:26:18 AM<BR>Subject: Re: [IronPython] Another deployment question...<BR><BR>Bob Rosembob wrote:<BR>&gt; One script that I'm using is a third party code and they would prefere <BR>&gt; me to use the compiled version of it. Is there a way to compile it?<BR>&gt;&nbsp; <BR><BR>You *cannot* use '.pyc' files with IronPython.<BR><BR>With IronPython 1 you can compile Python files into .NET assemblies that <BR>you can import from as if they were Python files (Resolver Systems use <BR>that). You can use the 'Pyc' compiler sample to do this.<BR><BR>There is not yet any equivalent for IronPython 2.<BR><BR>Michael Foord<BR><BR>&gt; Please advise.<BR>&gt;&nbsp; <BR>&gt; Thanks,<BR>&gt; Bob<BR>&gt;&nbsp;
 <BR>&gt; -----------------------------------------------------------------------<BR>&gt; Bob Rosembob wrote:<BR>&gt; &gt;/ Hi there,<BR>&gt; /&gt;/ I have a couple of questions.<BR>&gt; /&gt;/ <BR>&gt; /&gt;/ 1. If I'm using IronPython to call Python function from my C# app.<BR>&gt; /&gt;/ What do I need to deploy my project?<BR>&gt; /&gt;/ <BR>&gt; /&gt;/ I added references to my project to the following dlls:<BR>&gt; /&gt;/ /IronPython.dlll<BR>&gt; /&gt;/ IronMath.dll/<BR>&gt; /&gt;/ /<BR>&gt; /&gt;/&nbsp; /<BR>&gt; /&gt;/ In the code I'm using the following:<BR>&gt; /&gt;/ /using IronPython.Runtime;<BR>&gt; /&gt;/ using IronPython.Runtime.Types;<BR>&gt; /&gt;/ using IronPython.Runtime.Operations;<BR>&gt; /&gt;/ usingIronPython.Hosting;<BR>&gt; /&gt;/ using IronPython.Modules;/<BR>&gt; /&gt;/ /<BR>&gt; /&gt;/&nbsp; /<BR>&gt; /&gt;/ The script imports:<BR>&gt; /&gt;/ /string/<BR>&gt; /&gt;/ /sys/<BR>&gt; /&gt;/ /os/<BR>&gt; /&gt;/ /math/<BR>&gt; /&gt;/
 and other<BR>&gt; /&gt;/ <BR>&gt; /&gt;/ 2. In order to run the script I had to copy imported libraries <BR>&gt; into /&gt;/ directory where my exe is.&nbsp; For some reason if I copy the <BR>&gt; compiled<BR>&gt; /&gt;/ version of the files (e.g. string.pyc, sys.pyc, etc.) my script won't<BR>&gt; /&gt;/ find them. It can see only none-compiled files. Why is it? What <BR>&gt; should /&gt;/ I do to be able run all script files (py) as compiled (pyc)?<BR>&gt; /<BR>&gt; Those compiled files are compiled into bytecode for the CPython VM. They<BR>&gt; will never run on the .NET framework.<BR>&gt;<BR>&gt; What is wrong with using the '.py' source files?<BR>&gt;<BR>&gt; Michael<BR>&gt;<BR>&gt;<BR>&gt; &gt;/ <BR>&gt; /&gt;/ Please advise.<BR>&gt; /&gt;/ <BR>&gt; /&gt;/ Thanks,<BR>&gt; /&gt;/ Bob<BR>&gt; /&gt;/ <BR>&gt; /&gt;/<BR>&gt; /&gt;/ <BR>&gt; ------------------------------------------------------------------------/<BR>&gt;<BR>&gt;
 ------------------------------------------------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; <A href="mailto:Users@lists.ironpython.com" target=_blank rel=nofollow ymailto="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</A><BR>&gt; <A href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target=_blank rel=nofollow>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</A><BR>&gt;&nbsp; <BR><BR><BR>-- <BR><A href="http://www.ironpythoninaction.com/" target=_blank rel=nofollow>http://www.ironpythoninaction.com/</A><BR><A href="http://www.voidspace.org.uk/" target=_blank rel=nofollow>http://www.voidspace.org.uk/</A><BR><A href="http://www.trypython.org/" target=_blank rel=nofollow>http://www.trypython.org/</A><BR><A href="http://www.ironpython.info/" target=_blank rel=nofollow>http://www.ironpython.info/</A><BR><A
 href="http://www.resolverhacks.net/" target=_blank rel=nofollow>http://www.resolverhacks.net/</A><BR><A href="http://wwww.theotherdelia.co.uk/" target=_blank rel=nofollow>http://wwww.theotherdelia.co.uk/</A><BR><BR>_______________________________________________<BR>Users mailing list<BR><A href="mailto:Users@lists.ironpython.com" target=_blank rel=nofollow ymailto="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</A><BR><A href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target=_blank rel=nofollow>http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</A><BR></DIV></DIV><BR></DIV></div><br>

      </body></html>