Grasshopper

algorithmic modeling for Rhino

Does anyone know of a good way to compile a component written in IronPython to dll, so as to include all of its dependencies? Any help or direction would be greatly appreciated.
Thanks,
Zach

Views: 1728

Reply to This

Replies to This Discussion

I was also going to add that I would like to be able to make a GHA after it has been compiled. I may be pushing my luck but I'd this possible to do from code generated in iron python?
Thanks in advance,
Zach

I'd start by taking a look here. Basically there's a script pyc.py that is distributed with IronPython that will compile in to dlls (the default) or exes. There's also a sample that has an example of how to use it as well that you can find in the download here. About 2/3rds of the way down there's an explanation of the sample. Also found an interesting result from google books that uses the interpreter to compile.

 

As for making a GHA with IronPython, I'm not sure I see any specific reason why its not possible.  You'd have to make sure that you're creating the structure the GH expects within your dll, but outside of that I don't know of any specific road blocks.

Thanks a lot for the direction Damien, I'll give it a shot and let you know how it goes.

Zach

Hi Zachary... Did you get the process work by any chance?

Thanks,

Mostapha

No I did not get it to work. Instead I created an installer that places all of the dependent modules in the right place so the components work correctly. Ideally All of these python scripts would be combined into one dll, but I couldn't get it working. If you figure it out, I would be interested to know.

Thanks,

Zach

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2020   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service