[IronPython] Feedback needed for bug fix: Import pre-compiled modules

Haibo Luo haiboluo at exchange.microsoft.com
Tue Jan 23 01:13:04 CET 2007


We recently checked in a fix for codeplex work item# 358 (Implement import of pre-compiled modules<http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=358>). If possible, please download the source, and try it with your scenarios to see whether it addresses your issue (since many of you voted for this item).

Running ipy.exe with existing -X:SaveAssemlies switch saves all .py files to corresponding .exe files. For example, given 2 files, main.py, and lib.py

# lib.py
x = 10

# main.py
import lib
print lib.x

"ipy.exe -X:SaveAssemblies main.py" will result in the creation of lib.exe and main.exe.

Next time you run main.py (no switch necessary), "import lib" prefers loading lib.exe to lib.py,  if neither ironpython.dll nor lib.py is newer than lib.exe.
This is also supposed to enable the binary deployment: you can copy only exe's (with the package structure) along with ironpython binaries to run your IronPython app.

A new switch "-X:NotImportCompiled" is provided to disable such pre-compiled module import.

Just a reminder, you can always vote on bugs in codeplex<http://www.codeplex.com/IronPython/WorkItem/List.aspx>. Thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070122/ecf0fcd6/attachment.html>


More information about the Ironpython-users mailing list