[Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL

Chuck Dascalos dascalos at hotmail.com
Tue Oct 14 00:15:25 CEST 2014


I've figured out how to compile the library into a dll with the following command (running this from the root of the azure sdk directory)...
ipy "C:\Program Files (x86)\IronPython 2.7\Tools\Scripts\pyc.py" /target:dll /out:IronPython.Azure *.py http/*.py servicebus/*.py servicemanagement/*.py storage/*.py
And yes, the azure sdk works with IronPython.  For my scenario, I did have to slightly hack the library.  You can read about what I did here...
http://stackoverflow.com/questions/26245365/ironpython-azure-sending-service-bus-message-assertion-error
OK, my question now is, how does my project know to use this dll now?  

Date: Mon, 13 Oct 2014 10:33:55 -0700
Subject: Re: [Ironpython-users] Compiling and Deploying IronPython Dependencies to DLL
From: slide.o.mix at gmail.com
To: jdhardy at gmail.com
CC: dascalos at hotmail.com; ironpython-users at python.org

Can you give an example of the file hierarchy for the Azure Python SDK?
On Mon, Oct 13, 2014 at 10:33 AM, Jeff Hardy <jdhardy at gmail.com> wrote:
pyc.py is the route you want to go, although I'll have to look up the

exact syntax to use (Alex might know, I cc'd him).



Also, does the Azure Python SDK work with IronPython? That would be

great if it did.



- Jeff



On Fri, Oct 10, 2014 at 7:45 PM, Chuck Dascalos <dascalos at hotmail.com> wrote:

> Greetings IronPython friends.  I am putting together an Azure Worker Role

> which is a combination of C# and IronPython code.  I have included the

> IronPython Nuget package which drops in IronPython.dll and

> IronPython.Modules.dll among other things.  The IronPython.Modules.dll

> includes several popular python modules such as binascii, socket, cmath,

> etc...

>

> My IronPython code has a dependency on the Python Azure SDK.  I would prefer

> to generate my own dll similar to the Modules.dll that could hold the

> dependencies I need for my project.  Is this possible?  I would prefer to do

> it with a dll instead of including all the py files I need.

>

> I have been looking at the documentation for IronPython and using pyc.py to

> do such tasks.  So I am guessing this is the route to go.

>

> I don't understand how to build a .dll for the azure sdk when it is made up

> of several folders of py files.

>

> Any help would be greatly appreciated!  Thank you.

>

> _______________________________________________

> Ironpython-users mailing list

> Ironpython-users at python.org

> https://mail.python.org/mailman/listinfo/ironpython-users

>



-- 
Website: http://earl-of-code.com
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20141013/7ef74a9c/attachment.html>


More information about the Ironpython-users mailing list