You should be able to do a clr.AddReference (r clr.AddReferenceToFileAndPath) on the DLL and then import modules as usual.
- Jeff On Mon, Oct 13, 2014 at 11:15 PM, Chuck Dascalos <dasca...@hotmail.com> wrote: > 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....@gmail.com > To: jdha...@gmail.com > CC: dasca...@hotmail.com; ironpython-users@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 <jdha...@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 <dasca...@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@python.org >> https://mail.python.org/mailman/listinfo/ironpython-users >> > > > > > -- > Website: http://earl-of-code.com _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users