Probably one method would be to use the clr.CompileModules function.
Have a look at this function on these two pages, so you can have an idea on how it works:
- http://www.voidspace.org.uk/ironpython/dark-corners.shtml
- http://blogs.msdn.com/b/srivatsn/archive/2008/08/06/static-compilation-of-ironpython-scripts.aspx
Giulio
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com