[Ironpython-users] IronPython, Daily Digest 5/17/2013

CodePlex no_reply at codeplex.com
Sat May 18 09:18:40 CEST 2013


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] IronPython pyc.py -> .exe : How to compile programs using external dlls

----------------------------------------------

ISSUES

1. [New issue] IronPython pyc.py -> .exe : How to compile programs using external dlls
http://ironpython.codeplex.com/workitem/34064
User 27Sergio27 has proposed the issue:

"Hello,

I am starting to use the pyc.py file to create a .exe file of my IronPython project. It seems that pyc.py cannot deal with programs that use external dlls. To be clear here are examples of something that worked and something that didn't:

program1.py :
print 'hello world'
raw_input('--->')

I managed to make a .exe file of program1.py which worked by using the following command:
ipy pyc.py /main:program1.py /target:exe

Now here is program2.py :
from clr import AddReferenceToFile
AddReferenceToFile ('myExternalDllForProgram2.dll')
raw_input('--->')

I managed to make a .exe file of program2.py using the same command that for program1.py. Problem is, the .exe file does not work (the result box writes a lot of things and fails at some point).

Of course, myExternalDllForProgram2.dll was put in the folder with the .exe file and its dll (and with these dlls as well: IronPython.dll, IronPython.Modules.dll, Microsoft.Scripting.Metadata.dll, Microsoft.Scripting.dll, Microsoft.Dynamic.dll)

Does any one have an idea of what could have gone wrong?"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130518/defa848d/attachment.html>


More information about the Ironpython-users mailing list