By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,587 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,587 IT Pros & Developers. It's quick & easy.

IronPython on Mono howto

P: n/a
Skip wrote:
For those of us who have never used IronPython or Mono, is there a
quick start document laying about somewhere? It wasn't clear to me
where to even look.

Okay, here we go:

1. Download IronPython

Go to http://www.codeplex.com/IronPython. Click Releases tab. Click
IronPython-1.0-Bin.zip or IronPython-1.0-Src.zip. You need to agree to
the license. Read it if you haven't.

2. Download Mono

Go to http://www.mono-project.com/. Click "download now" icon
(topright). DO NOT DOWNLOAD 1.1.13, IT WON'T WORK. Download according
to your platform and install in the usual way. If you are using Debian
Unstable like me, apt-get install mono is enough. For Linux users not
covered, but using x86 architecture, I highly recommend "Linux
Installer for x86 (All distributions)" download. It's a graphical
installer, can be installed under your home directory not to distrub
package managers, and uninstalls cleanly.

3. Run (Binary case)

Unzip IronPython-1.0-Bin.zip. It unzips to IronPython-1.0 directory.
Change to it. Run "mono ipy.exe". Make sure mono --version shows the
version you installed; you may have non-working (for IronPython) 1.1.13
already installed on your system. You will see:

IronPython 1.0.60816 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>>
4. Compile and Run (Source case)

Unzip IronPython-1.0-Src.zip. It unzips to IronPython-1.0 directory.
Change to it. Change to Src directory under it. Edit makefile.

1) Change "CSC=csc" to "CSC=gmcs".
2) Change "mkdir ..." to "mkdir -p".

Make. "Compilation succeeded". Change to the parent directory and you
will see newly compiled ipy.exe and DLLs. Run as in 3.

Seo Sanghyeon

Sep 6 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
sa*****@gmail.com wrote:
Okay, here we go:
1. Download IronPython
Kudos for taking the time!

Sep 6 '06 #2

P: n/a
sa*****@gmail.com <sa*****@gmail.comwrote:
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 <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Sep 7 '06 #3

P: n/a

sanxiynFor those of us who have never used IronPython or Mono, is
sanxiynthere a quick start document laying about somewhere? It wasn't
sanxiynclear to me where to even look.

sanxiynOkay, here we go:
...

Thanks. Worked like a charm. Like others I noticed the apparent
performance drop. I presume that's more a comment on the state of
optimization in Mono than on IronPython itself.

One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?

Thx,

Skip

Sep 7 '06 #4

P: n/a
In <ma*************************************@python.or g>, skip wrote:
One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?
The `boo` shell and the `Nemerle` shell can be quit with Ctrl-D under
Mono, so I guess it's an `IronPython` thing.

Ciao,
Marc 'BlackJack' Rintsch
Sep 7 '06 #5

P: n/a
sk**@pobox.com wrote:
One thing I did find especially annoying though was that none of the editing
keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves.
Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.)

Is this a known problem? Is it a Mono thing or an IronPython thing? Any
workaround?
It is a known problem. It is a Mono bug. (ncurses-based colored console
is not really complete.) There is a workaround.

Apply
http://sparcs.kaist.ac.kr/~tinuviel/...n-mono-console

Seo Sanghyeon

Sep 8 '06 #6

P: n/a
>One thing I did find especially annoying though was that none of the
editing keys worked.
SeoIt is a known problem. It is a Mono bug. (ncurses-based colored
Seoconsole is not really complete.) There is a workaround.

Thanks, it worked perfectly. I guess the white text on the white background
prevented the Mono developers from seeing that the editing characters were
self inserting. ;-)

Skip
Sep 8 '06 #7

P: n/a
<sk**@pobox.comwrote:
>One thing I did find especially annoying though was that none of the
>editing keys worked.

SeoIt is a known problem. It is a Mono bug. (ncurses-based colored
Seoconsole is not really complete.) There is a workaround.

Thanks, it worked perfectly. I guess the white text on the white background
prevented the Mono developers from seeing that the editing characters were
self inserting. ;-)
On MacOSX, my workaround for the white-on-white behavior of
IronPython+Mono on Apple's Terminal was to try other terminal emulators
-- Terminator worked fine (display-wise). But the editing remains off,
so I'll be glad to try the suggested workaround (if and when
sparcs.kaist.ac.kr responds...:-).
Thaks,

Alex
Sep 9 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.