[Shootout-list] Please copy pure-Python modules from CPython to IronPython

Seo Sanghyeon tinuviel at sparcs.kaist.ac.kr
Sat Apr 22 23:01:46 UTC 2006


First, thank you for adding IronPython to the shootout!

I see some tests like cheap-concurrency failing because it can't import
threading module. But IronPython is designed to be used together with
pure-Python modules from CPython, not alone. So please copy them.

Step by step: (in IronPython install directory)
$ rm -rf Lib
$ cp -a /usr/lib/python2.4 Lib
$ rm Lib/site.py
$ touch Lib/site.py

Last two steps are necessary, because CPython's site.py startup file
doesn't make sense with IronPython, but site.py needs to exist anyway.

Much of threading module is implemented in pure-Python. Only the thread
module (not threading) is built-in. For fun, here's dependency graph of
threading module:

threading
 _threading_local
 atexit
 traceback
  linecache
   os
    UserDict
    copy_reg
     types
    posixpath
    stat

Seo Sanghyeon



More information about the Shootout-list mailing list