[IronPython] IronPython 0.9.5 released, Runs on Mono

Jeff Kowalczyk jtk at yahoo.com
Fri Nov 18 02:13:46 CET 2005

Dino Viehland wrote:
> We've just released the latest version of IronPython - 0.9.5.

Thanks for the release. Just FYI, IronPython builds and runs on
mono-1.1.10 under Gentoo Linux. There's a NotImplementedException
around every corner, but you can run it easily. Steps to build:

- change the makefile:
  CSC = gmcs
  eight spaces on line 16 should be a tab, and an extra line needs to be
  added to create the intermediate directory IronPythonTest/bin.

    $ make
    mkdir IronPythonTest/bin
    mkdir IronPythonTest/bin/Debug
    gmcs -t:library -r:bin/IronMath.dll -r:bin/IronPython.dll -out:IronPythonTest/bin/Debug/IronPythonTest.dll -recurse:IronPythonTest/*.cs
    IronPythonTest/DeTest.cs(151,26): warning CS0219: The variable `dts2' is assigned but its value is never used
    IronPythonTest/DeTest.cs(41,14): warning CS0169: The private method `IronPythonTest.DeTestStruct.Init()' is never used
    IronPythonTest/InheritTest.cs(171,24): warning CS0414: The private field `IronPythonTest.Inherited.str' is assigned but its value is never used
    Compilation succeeded - 3 warning(s)

    $ cd bin/
    bin $ mono IronPythonConsole.exe
    IronPython 0.9.5 on .NET 2.0.50727.42
    Copyright (c) Microsoft Corporation. All rights reserved.
    >>> 2 + 2
    >>> s = 'IronPython builds and runs on Mono'

    >>> dir(s)

    ['Clone', 'Compare', 'CompareOrdinal', 'CompareTo', 'Concat', 'Contains', 'Copy', 'CopyTo', 'Empty', 'EndsWith', 'Equals', 'Format', 'GetEncoding', 'GetEnumerator', 'GetHashCode', 'GetType', 'GetTypeCode', 'IndexOf', 'IndexOfAny', 'Insert', 'Intern', 'IsInterned', 'IsNullOrEmpty', 'Join', 'LastIndexOf', 'LastIndexOfAny', 'Length', 'Multiply', 'PadLeft', 'PadRight', 'Quote', 'RawDecode', 'RawEncode', 'Remove', 'Replace', 'Split', 'StartsWith', 'Substring', 'ToCharArray', 'ToLower', 'ToLowerInvariant', 'ToString', 'ToUpper', 'ToUpperInvariant', 'Trim', 'TrimEnd', 'TrimStart', '__contains__', '__eq__', '__getitem__', '__getslice__', '__init__', '__len__', '__mod__', '__mul__', '__ne__', '__new__', '__repr__', 'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'op_Equality', 'op_Inequality', 'replace', 'rfind', 'rindex', 'rjust', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

    >>> for c in s: print c

Makefile Patch:

$ diff -u IronPython-0.9.5/makefile IronPython-0.9.5fixed/makefile
--- IronPython-0.9.5/makefile   2005-08-17 20:21:40.000000000 -0400
+++ IronPython-0.9.5fixed/makefile      2005-11-17 19:52:44.000000000 -0500
@@ -1,4 +1,4 @@

 all:bin/IronMath.dll bin/IronPython.dll bin/IronPythonConsole.exe IronPythonTest/bin/Debug/IronPythonTest.dll

@@ -13,5 +13,6 @@

 IronPythonTest/bin/Debug/IronPythonTest.dll: bin/IronMath.dll bin/IronPython.dll
-        mkdir IronPythonTest/bin/Debug
+       mkdir IronPythonTest/bin
+       mkdir IronPythonTest/bin/Debug
        $(CSC) -t:library -r:bin/IronMath.dll -r:bin/IronPython.dll -out:IronPythonTest/bin/Debug/IronPythonTest.dll -recurse:IronPythonTest/*.cs

More information about the Ironpython-users mailing list