IronPython on Mono howto
Nick Craig-Wood
nick at craig-wood.com
Thu Sep 7 07:30:06 EDT 2006
sanxiyn at gmail.com <sanxiyn at gmail.com> wrote:
> Okay, here we go:
[snip]
Thanks for those good instructions - they worked well!
I tried running a test program under mono/linux.
I found I needed to add
import sys
sys.path.append("/usr/lib/python2.4")
As per the FAQ to the code. Setting this in an environment var would
be nice but I didn't find one.
The code then ran fine. (Its a test suite for my sudoku solver.)
$ mono ipy.exe ~/Python/sudoku.py -t
...........
----------------------------------------------------------------------
Ran 11 tests in 5.533s
Compared to
$ python2.4 ~/Python/sudoku.py -t
...........
----------------------------------------------------------------------
Ran 11 tests in 1.637s
It seems to take about a second to start IronPython vs ~15 ms for
Python2.4, eg
$ time mono ipy.exe -c pass
real 0m1.034s
user 0m1.000s
sys 0m0.036s
$ time python2.4 -c pass
real 0m0.015s
user 0m0.008s
sys 0m0.007s
Over all I'm very impressed - it is great to have a new implemention
of Python. I'm not sure mono is showing it off to its full extent
though!
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list