406
❘
CHAPTER 19
Using ironPython with Mono
Many developers are worried that the extensions they create for IronPython won’t work under
Mono. Unfortunately, not every extension will run under Mono, but you’ll be surprised to discover
that Mono comes with fewer limitations than you might think. The section “Interacting with Other
.NET Languages Under Mono” later in this chapter discusses a few issues you should know about
when using your extension on another platform to support IronPython.
Finally, the chapter discusses application testing. Actually, there are fewer issues here than you might
think. Mono provides good support for many of the testing techniques that you already use. However,
you might find that you need to obtain a few additional tools to create a full testing solution. Some
platforms simply require that you buy a testing tool for that platform, but take time to read this section
before you come to any conclusions on your own.
WHAT IS MoNo?
Mono (
http://www.mono-project.com/
) is a run time along the same lines as the .NET Framework,
and it includes much of the functionality of the .NET Framework. In fact, with each release, Mono
gets a bit closer to .NET Framework functionality. However, don’t get the idea that Mono will ever
exactly match the .NET Framework. Platform differences, Microsoft copyrights, and other issues will
always keep Mono just a bit different from the .NET Framework. Even so, Mono can run a consider-
able number of .NET applications. The following sections describe Mono, its advantages and limita-
tions, in greater detail.
An overview of the Mono Family
You can obtain Mono for a considerable number of platforms. In fact, the makers of Mono add
new platforms with every release. At one time, Mono worked on just a few Linux implementations,
Windows, and the Mac OS X. Over time, Mono support has increased to the exciting list of platforms
that follows.
➤➤
LiveCD: This is actually an openSUSE 11.2.1 (
http://www.opensuse.org/en/
) LiveCD
(a CD or DVD that contains a bootable image — see
http://en.wikipedia.org/wiki/
Live_CD
for details) that includes Mono 2.6.1.
➤
➤
Mac OS X: You can use this installation on a number of Mac versions including Mac OS X
Tiger (10.4), Leopard (10.5), and Snow Leopard (10.6) (it may work on other versions as well,
but you’re on your own for support). The download includes Mono, Cocoa#, and Gtk# (GIMP
Toolkit Sharp). You need to download the Client Software Development Kit (CSDK), available
on the Mono site, separately. There are separate downloads for the Intel and PowerPC plat-
forms. You can learn more about Mac OS X at
http://www.apple.com/macosx/
.
Computer acronyms and abbreviations often contain terms within terms. GIMP
stands for GNU Image Manipulation Program. Of course, GNU is one of those
fancy recursive abbreviations that stands for GNU’s Not Unix. You can learn
more about Gtk# at
http://www.mono-project.com/GtkSharp
. You can obtain
a .NET Framework version of the Gtk# library from
http://ftp.novell.com/
pub/mono/gtk-sharp/
; simply download
gtk-sharp-2.12.9-2.win32.msi
.
548592c19.indd 406
2/24/10 12:49:50 PM
www.finebook.ir
Do'stlaringiz bilan baham: |